Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Join us March 10th, 7 ways modern analytics can help you take smarter action. REGISTER NOW
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

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)

View solution in original post

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

Thanks All for ur response!

Massimo, your suggestion worked. Thank you !