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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sarasmonu
Creator
Creator

Sort - Month(Date)&'-'&Year(Date)

Hi All,

I am using Month(Date)&'-'&Year(Date) expression in my dimension in bar chart and i want it to be sorted Month and then year wise, Ex-

Jan-13, Feb-13.. and so on.

I see that the expression has been sorted properly but for some reason Oct-2013 and Nov-2013 is getting displayed at the end after Sep-2017.

Please help me get this fixed.

Thanks,

Monu

1 Solution

Accepted Solutions
maxgro
MVP
MVP

sort by

max(Date)

View solution in original post

6 Replies
aarkay29
Specialist
Specialist

Try Sort by Expression Date(Monthstart(Date),'MMM-YYYY')

sarasmonu
Creator
Creator
Author

Thanks ! Makes sense, but did not work.

antoniotiman
Master III
Master III

Hi,

why don't use

MonthName(Date)

instead of Month(Date)&'-'&Year(Date) ?

MonthName() is Dual Function.

=MonthName('13/06/2017')

Regards,

Antonio

maxgro
MVP
MVP

sort by

max(Date)

aarkay29
Specialist
Specialist

Just give a try by using Date(Monthstart(Date),'MMM-YYYY') as Dim and sorting check Numeric ascending/descending

sarasmonu
Creator
Creator
Author

Thanks All for ur response!

Massimo, your suggestion worked. Thank you !