COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: njvree on 07 Jul 2015 01:40:39 PM

Title: Can't get Report Studio Chart to change Data Format
Post by: njvree on 07 Jul 2015 01:40:39 PM
Hello -

I was hoping someone could clue me in on how to change the data format from a format 2014-01-01 12:00:00 AM to Jan-01-2014 in a chart axis.  In any normal list report,  I would normally do by selecting the data item > properties > data format > change the format type to date and then Data Style to medium... When I do the same for a chart, nothing is happening...  Here's my procedure

(http://i300.photobucket.com/albums/nn40/njvree/graph_zpsebbplzcp.png)

To cover all bases, I'm doing the same thing in both locations.

(http://i300.photobucket.com/albums/nn40/njvree/data%20format_zpsh6ewzobf.png)

After doing this (or any other changes), nothing happens.

(http://i300.photobucket.com/albums/nn40/njvree/graph1_zpsem3smami.png)

Any insight on why this might be happening
Title: Re: Can't get Report Studio Chart to change Data Format
Post by: sacjeanie on 07 Jul 2015 03:41:04 PM
I was able modify how to display the date with two changes in the graph chart properties.

1) In the Chart Node Member (of the x-axis), under Text Source, change Source Type to Data Item Value  For my example, this was Date of Record
2) In that same property panel, under Data, change the Data Format to the short date.

Title: Re: Can't get Report Studio Chart to change Data Format
Post by: Robl on 09 Jul 2015 05:48:14 AM
The above answer is correct.

For some reason the labels default to "member caption" rather than "Data Item Value".
It's the same in charts and in crosstab headers, so it's well worth remembering the fix as it comes up quite often.