IBM Support

Formatting a date on a chart or crosstab does not appear as specified by the format

Troubleshooting


Problem

In Report Studio, when creating a chart or crosstab you may be trying to format a date dimension to only show the months and years of that dimension rather that the entire date. When changing the format, the changes do not show for the chart or crosstab, it continues to show the entire date. If the same format changes are made for a list report, the formatting changes do appear to take effect.

Cause

The date data item on the crosstab is defined as a memberCaption. MemberCaptions are strings therefore the report server does not format them. It must be defined as a Data Item Value so the date format can be applied. The reason why the list works is because the data item label is defined as "Data Item Value".

Resolving The Problem

Ensure the Source Type Property is set to Data Item Value.

Steps:
  1. Click the Date data item in the Chart or Crosstab.
  2. In the Properties area, locate the Text Item section.
  3. Change the Source Type from Member Caption to Data Item Value.

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"ARM Category":[{"code":"a8m500000008d78AAA","label":"Reporting"}],"ARM Case Number":"TS014307033","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
28 September 2023

UID

swg21341061