If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

x-axis label dates in alphabetical order (but unwanted)

Started by vinch999, 04 May 2011 03:59:30 AM

Previous topic - Next topic

vinch999

Hi,
I have a problem to display dates on a bar chart.
I have a data value every day.

I display the Day([Date]) and the monthName([Date]) on x-axis labels.
But the months are displayed in alphabetical order  >:(. I don't understand because I haven't this problem with other charts...

So I have April-----February-----March rather than February-----March------April

How to correct it?

Vinc


PRIT AMRIT

 A quick solution :)

Create a data item called [Sort Month]:

Case  monthName([Date])
when 'Jan' then '1'
when 'Feb' then '2'
so on
when 'Dec' then '12'
end

Sort your x-axis on [Sort Month]

Hope it helps?

Thanks

vinch999