Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month order in Chart

Hi,

In Chart ( x-Axis) ,how to order the month in the order Jan,Feb,Mar for a year.Right now the chart show month in random order.

4 Replies
simondachstr
Luminary Alumni
Luminary Alumni

Go to sort and Sort by an expression like:

=Month(Date#(MONTH,'MMM'))

maleksafa
Specialist
Specialist

you have multiple options:

1) when loading the calendar table where you have the month names, add another field which is the number order, and in the chart sort by this number

2) when loading the month names load it as dual function with a number for sorting and in the chart sort by month name as numeric value

3) in your chart sort by expression, match(MonthName,'Jan','Feb','Mar','Apr'....)

Not applicable
Author

Hi Martin ,

Thanks for the reply.

I have solved this in loading script using "Month(date) " conversion for date field & set the sequence for month.

Not applicable
Author

Hi Malek,

Second option solved the query.