Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
chiranjivdas
Contributor III
Contributor III

Sort in a Pivot Table (Cross Tab)


I have a cross table with customers as rows and year as column across the top. Like below

Customer2012 Revenue2013 Revenue2014 Revenue
Customer 1500450600
Customer 2700490585
Customer 39001150790

How can I sort by 2014 Revenue in descending order?

3 Replies
Anonymous
Not applicable

Pivot table is always sorted by dimensions, and the first dimension is Customer.  To solve your problem, you can sort Customer by expression, descending, and expression could be like this:

sum({<Year={'2014 Revenue'}>} Revenue)

krishna20
Specialist II
Specialist II

Hi,

Goto Sort Tab-> Select Numeric  and Expression value as Descending.

Regards

Krishna

Anonymous
Not applicable

Hi,

Double click on the 2014 year then u can see the sorting type