Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sorting a calculated dimensions in a chart

I have a pivot table where I have the calculated dimension

=month&' '&year

I have dragged this dimension within the pivot table so that the month & year appear horizontally. The problem is that I cannot get it to sort by month. When I just use the month as a dimension it sorts fine.

Do I need to have an expression in Properties -> Sort?

Any guidance would be greatly appreciated.

1 Solution

Accepted Solutions
nathanfurby
Specialist
Specialist

You are creating a text field with the concatenation of Month and Year. I would suggest using the following calculated Dimension instead:

=MonthName(DateField)

This will give you the Month and Year as required but keep it in underlying numeric date format so you can choose 'Numeric Value' as sort option on the dimension.

View solution in original post

2 Replies
nathanfurby
Specialist
Specialist

You are creating a text field with the concatenation of Month and Year. I would suggest using the following calculated Dimension instead:

=MonthName(DateField)

This will give you the Month and Year as required but keep it in underlying numeric date format so you can choose 'Numeric Value' as sort option on the dimension.

Not applicable
Author

This worked - thanks!