Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
rolandg1881
Creator
Creator

Month sort problem last 12 months

Hi!

I have the problem if i want see data from the last twelve months that the months are not in the correct "sequence".

it starts in june 2020 and ends in Mai 2020. You can see it in the attachment.

 

Any idea whats wrong? I tried any things but nothing worked correctly .

in the diagramm for the last 6 months i can see it correct with the same settings?

Thank you!

Roland

Labels (1)
3 Replies
NitinK7
Specialist
Specialist

I think you missed file  attachment , please attach your qvf

rolandg1881
Creator
Creator
Author

Ooops!

NitinK7
Specialist
Specialist

 

Create a field in script by using

Num(Month(DateField)) as MonthNum;

Sort tab:

Expression : MonthNum

or 

Expression: match(Month,'Jan','Feb','Mar' ...)

or

wildmatch(only({1}Month_field),'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec') 

only({1})- with this it wont change the order.