Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rish
Contributor III
Contributor III

Month Field Sorting

I created a month field using the following expression:

Month(DateField)&' '&Year(DateField)

 

But I can't sort it properly, I was able to get it sorted in the order of years but not with months. Can anybody help me with this? what expression can i use for this? 

1 Solution

Accepted Solutions
sunny_talwar

Create it like this instead

Date(MonthStart(DateField), 'MMM YYYY')

View solution in original post

2 Replies
sunny_talwar

Create it like this instead

Date(MonthStart(DateField), 'MMM YYYY')
rish
Contributor III
Contributor III
Author

Hi thanks, it works!!!