Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
kaylaramsey2
Partner - Contributor III
Partner - Contributor III

Sorting on Bar/Line Chart

My bar/line chart is not sorting correctly.  I see my issue.  The dates are only sorting where the line bar starts.  How do I force the whole chart to sort correctly?

Capture2.PNG

1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

Maybe with this sorting expression:

num(Date#(YourDateField,'YYYY-MMM'))

hope this helps

View solution in original post

4 Replies
sergio0592
Specialist III
Specialist III

In properties/Sort , you can use sort by expression and use match() :

=match(YourField,'201701','201702','201703','201704','201705',.....)

kaylaramsey2
Partner - Contributor III
Partner - Contributor III
Author

Hi this will not work.  This chart is going to continue growing everytime we add more data.  Doing a match would be very manual.

Frank_Hartmann
Master II
Master II

Maybe with this sorting expression:

num(Date#(YourDateField,'YYYY-MMM'))

hope this helps

MarcoWedel

please post a sample application that demonstrates the issue.