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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
panipat1990
Creator II
Creator II

Sorting Issue

Hi Team,

I have a reqruirment. How to sort Composite Key.. For this i am Sharing a qvw. in this A bar garph..i want to sort year month Key.Please Help me For sorting Issue

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

May be use a sort expression:

=Date#(Key, 'YYYY-MMM')


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

May be use a sort expression:

=Date#(Key, 'YYYY-MMM')


Capture.PNG

robert_mika

or you can change your script:

RegionSales:

Load * Inline

[ Region, Year, Month, Sales

North, 2014, 5, 245

North, 2014, 5, 347

North, 2014, 6, 127

South, 2014, 6, 645

South, 2013, 5,    367

South, 2013, 5, 221

East,   2012,   7,    203

West,   2011,   8,    289

];

Tab:

Load*,

   Dual(Year&'-'&month(makedate(2001,Month,1)),Year&Month) As Key

Resident RegionSales;

Drop Table RegionSales;