Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sort Month Name

Hi,

I have a question. I have load a calendar data successfully. When I want to show Month Field using list box, the first data is Dec not Jan. I have two field to be used in sort column, MonthNum (1-12) and MonthName (Jan-Dec). Anybody knows the method to sort month name correctly ?

Really appreciate your help, thanks

22 Replies
jagan
Partner - Champion III
Partner - Champion III

I mean you have to give this expression in all the month list boxes.

Regards,

Jagan.

Not applicable
Author

Oh I see Jagan,

So do you have another suggestion or method ?

Thanks Jagan

Not applicable
Author

If you use just MonthNum in the sort -> Expression, when you select one month, MonthNum will become 'Null' for not selected months. This causes them to appear first. To avoid this, irrespective of month selections, Only({1}MonthNum) always returns the corresponding number.

And as suggested earlier, to avoid this work around, always use date functions to create master calendar.

Regards,

KKR