Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
udaya_kumar
Specialist
Specialist

Not able to sort dates in line chart

Hi,

I have a line chart in my dashboard, it contains date like Jan-11,Feb-10.....

I am not able to sort the dates. I want the dates to be look like Jan-10 Feb-10 Mar-10 Feb-11 Jan-12 Feb-12.

Like it should be sorted in ascending order.

PFA of the chart.

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Use the following expression in the Sort By box in the sort tab of the chart properties and see if the dimension sorts correctly:

Num(Date#('1-'&month_name,'D-MMM-YY'))

View solution in original post

5 Replies
nagaiank
Specialist III
Specialist III

If your dimension field is linked or derived from a date field, use that date field as sort expression in the sort tab of the chart properties window.

udaya_kumar
Specialist
Specialist
Author

Hi,

I am using only one dimension, that is month_name for the chart.

That month_name is not sorting in the chart.

nagaiank
Specialist III
Specialist III

Use the following expression in the Sort By box in the sort tab of the chart properties and see if the dimension sorts correctly:

Num(Date#('1-'&month_name,'D-MMM-YY'))

udaya_kumar
Specialist
Specialist
Author

It's working fine,

thank u very much sir

Not applicable

I'm having the same problem, except my month names aren't derived from a date field, but are instead just text names.  Any ideas how to get the sorting to work properly?