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

sorting month

how to sort month names in ascending order in qlikview .Can anyone help me to sort months in a proper order..i tired in expression also but not sort month. 😞

8 Replies
senpradip007
Specialist III
Specialist III

Do you want to sort alphabetically or financial month wise or calender month wise?

For alphabetic you just sort it as Text (A-Z).

For financial month you try with Match(Month, 'Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec','Jan','Feb','Mar').

anbu1984
Master III
Master III

Check this app

Not applicable
Author

Hi Amjad

There are two ways through which you can sort it,

1) Using sort A-Z selection under sort tab ,that comes when you go to the properties of your chart.

2)The second option is by using expression option and writing an If condition like

if(month=jan,1),if (mon=feb,2)......likewise

hope you must have got the idea.

Thanks

jagan
Partner - Champion III
Partner - Champion III

Hi,

If you are arriving month in script like below then you can specify Properties -> Sort-> Numeric

LOAD

*,

Month(Date) AS Month

FROM DataSource;

Regards,

Jagan.

Not applicable
Author

hi it works.. thanks alot for ur feedback 🙂

anbu1984
Master III
Master III

Pls close the thread, if your queries are answered

ychaitanya
Creator III
Creator III

In Sort Tab you can use the following expression

Only ( {1} Match(Month,'Jan,'Feb',Mar','Apr','May','Jun','Jul','Aug','Sep'.'Oct','Nov','Dec')

This will help you the way you wish .. may be from Jan- Dec or Apr-Mar...

Please close the thread by marking Helpful and answered .

Thanks

Chaitanya

MarcoWedel

Try to create the month field using the Month() function in the script.

Doing so, it will be sorted chronologically without any additional sorting expression.

please provide sample app/data to demonstrate.

thanks

regards

Marco