Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
JishnuGS
Partner - Contributor III
Partner - Contributor III

How to Sort Month Year

Hi,

I want to sort the month year in the below order, could anyone help me.

Required order,

JishnuGS_1-1603383971145.png

 

Current order,

JishnuGS_0-1603383930382.png

Thanks, Jishnu

1 Solution

Accepted Solutions
Kushal_Chawda

@JishnuGS  you can create a field which stores number value of Month/Year field and then use that field in sort expression

floor(date(date#([Month/Year],'MMMM YYYY'))) as [Month/Year Num]

View solution in original post

3 Replies
QFabian
Specialist III
Specialist III

hi, you need  date (number) field for sorting

as i can see, your data field is atachec to the left, so is text.

you can create your date field with that text using mid, replace functions, then  makedate()

QFabian
Kushal_Chawda

@JishnuGS  you can create a field which stores number value of Month/Year field and then use that field in sort expression

floor(date(date#([Month/Year],'MMMM YYYY'))) as [Month/Year Num]

JishnuGS
Partner - Contributor III
Partner - Contributor III
Author

Hi @Kushal_Chawda,

Perfect Thanks!!