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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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