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: 
migueldelval
Specialist
Specialist

Sort Moth

Hi all,

I have this Dimmension:

=IF( FLAG_LAST_WEEK_MONTH='1', left(MONTH_NUMBER,3)&'-'&(YEAR_NUMBER) ).

But my months aren´t sorted, they are like Picture.

And I need to sort them, in normal order.

Could some body help me?

Regards

Miguel del Valle

15 Replies
migueldelval
Specialist
Specialist
Author

Hi Rudolph,

Thanks, But your expression it don´t make anything.

Regards

Miguel del Valle

sunny_talwar

Can you check the environmental variable in the script? See if you have this?

SET MonthNames='Ene;Feb;Mar;Abr;May;Jun;Jul;Ago;Sep;Oct;Nov;Dic';

SunilChauhan
Champion II
Champion II

are you getting  MonthNUm and YearNum from  Date field, then you Can use below in Expression

Date(MonthName(Date),'MMM-YYYY')

Sunil Chauhan
migueldelval
Specialist
Specialist
Author

Hi Sunny T,

This it was the problem,I have made change in SET MONTHNAME, and everything it´s correct.

Thank you very much.

I was starting to drive me crazy.

Regards

Miguel del Valle

sunny_talwar

Awesome, I am glad you were able to figure this out

Best,

Sunny

migueldelval
Specialist
Specialist
Author

Hi Sumil,

Thank you, but it´s better to my qvw Sunny´s answer.

Regards

Miguel del Valle