Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date sort

I am not able to sort this chart-

I have tried every possible option but not able to do

3 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Sesa Stone,

How do you want to sort?

Regards,

MB

sunny_talwar

try the following sort expression:

=Date#(YourDimensionName, 'D-MMM-YYYY')

jonathandienst
Partner - Champion III
Partner - Champion III

This is probably because the X- axis field is a string field and not a date field. With that date format, you cannot easily sort the strings.

Convert the field to a date field during the load:

     LOAD...

          myDatefield as strDateField,

          Date(Date#(myDatefield, 'd-MMM-yyyy')) As DateField,

          ...

Then use DateField  as the dimension and sort numerically. Change the field names to suit your document.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein