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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
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..

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine