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: 
ankitaag
Partner - Creator III
Partner - Creator III

Pivot table sorting not working

Hello All,

I am attaching a sample application where I want the user to select any 1 measure from the listbox and the pivot table should get sorted accordingly.

Please help!

morganaaron

Thanks and Regards,

Ankita

15 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Looks to me like it works. It first sorts on Region, then sorts the Departments within the region and so on.


talk is cheap, supply exceeds demand
sunny_talwar

Similar idea. Check out this link: Re: Sorting not working

HTH

Best,

Sunny

ankitaag
Partner - Creator III
Partner - Creator III
Author

sunindia,

thats the link from my own team mate.. so its not useful for me..Thanks

sunny_talwar

Hahahaha ya I figured that, but I guess the answer still stays the same that the kind of sorting you are looking for might not work with a pivot table. But I will still not pass any judgement and will wait for somebody to may be give you a solution you are looking for

Best,

Sunny

ankitaag
Partner - Creator III
Partner - Creator III
Author

Hi,

Yes I totally agree with that but for Canada Region, Department='', Role='Others' should come first as it has the highest value.

Capture.PNG

ankitaag
Partner - Creator III
Partner - Creator III
Author

Hi Sunindia,

Thankyou.

But previously it was working fine and now I have no idea why it is not working.

sunny_talwar

Oh okay.

I would love it if you can share the solution once you have it pinned.

Thank you.

ankitaag
Partner - Creator III
Partner - Creator III
Author

FYI

utkarshgarg

swuehl
MVP
MVP

You sort Role by sum(Amount), and Role '' has the highest value 1033 + 543 + 1222, so it comes first.

Sum(Amount) will not be considering the preceding dimensions.

(Think about how it will  affect sorting when pivoting Role to the top otherwise)