Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
priyav24
Creator II
Creator II

Sorting of Date??

Hello Everybody,

                                   I have an issue with sorting of Month-Year in a Bar-chart.The Client Requirement is they want the month & year in one field as X-axis in the descending order Like "2013-Sep,2013-Aug.................................2001-Jan".Am unable to sort this Issue..

     I have attached the qlikview file for Reference..

Thanks in Advance,

Priya

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Hello Priya,

Your moth year data is not a real date, that is why you are facing the issue.

Change you dimension as calculated dimension, expression: =MonthName(Date#(PurchaseDate_MonthYear,'MMM-YYYY'))

and then change the sort order as numeric(descending)

PFA

View solution in original post

4 Replies
tresesco
MVP
MVP

Hello Priya,

Your moth year data is not a real date, that is why you are facing the issue.

Change you dimension as calculated dimension, expression: =MonthName(Date#(PurchaseDate_MonthYear,'MMM-YYYY'))

and then change the sort order as numeric(descending)

PFA

christophebrault
Specialist
Specialist

Hi,

Or simply change sort ordre using expression descending :

max(PurchaseDocDate)

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
priyav24
Creator II
Creator II
Author

Thank you Tresesco..

rbecher
MVP
MVP

It would be better to have MonthName as an additional field..

Astrato.io Head of R&D