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: 
Not applicable

Pivot Table Sort Issue

I have an issue whereby I have created a sort order 1-7 and applied it to a field, but when the sum of that field is 0, the sort order does not apply.

Below demonstrates the correct sort order (see Tax in position 6).

error loading image

When a different month is selected and Tax has a 'Actual' result of 0, it is automatically placed at the top of the group list.

error loading image

How can I maintain this sort order at all times?

1 Solution

Accepted Solutions
Not applicable
Author

I found the solution,

In the script I applied a dual() command to the 'Group' field to give the same field a text and numeric value.

E.g.

LOAD Dual(Group,GroupSort) as Group

I then sorted the Pivot Table by Numeric Value instead of expression and voila! It works perfectly.

View solution in original post

2 Replies
Not applicable
Author

I found the solution,

In the script I applied a dual() command to the 'Group' field to give the same field a text and numeric value.

E.g.

LOAD Dual(Group,GroupSort) as Group

I then sorted the Pivot Table by Numeric Value instead of expression and voila! It works perfectly.

suniljain
Master
Master

LOAD Dual(Group,GroupSort) as Group

what value you taken for GroupSort