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: 
rxp03570
Creator
Creator

[Month Year] Sort Help

Hi,

Trying to sort [Month Year] data is in the form 2016 Jan.....2017 Jan... 2018 Jan.

Thanks for the help 🙂

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Or sort by expression as below

Date#([Month Year],'YYYY MMM')

View solution in original post

4 Replies
sunny_talwar

May be try sorting using this expression

Month([Month Year])*100000 + Year([Month Year])

MK_QSL
MVP
MVP

Or sort by expression as below

Date#([Month Year],'YYYY MMM')

sunny_talwar

I might have misunderstood... but this will sort like this

Jan 2016

Feb 2016

Mar 2016

.

.

.

Dec 2016

Jan 2017

Feb 2017

Mar 2017

.

.

.

Dec 2017

Jan 2018

.

.

.

From what I understood, the sorting needed is like this

Jan 2016

Jan 2017

Jan 2018

Feb 2016

Feb 2017

Feb 2018

.

.

.

If the above is not what is needed then I would use mrkachhiaimp‌'s expression for sure

sunny_talwar

I guess I was wrong