Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nivellen11
Contributor III
Contributor III

Pivot table sorting with 2 calculated dimensions

Hi, I need to create table with two dimensions. First one with top 5 value based one first expression (expanded) + others row sowing sum of rest (collapsed) + Grand Total. 2nd dimension will show top 3 values based on 1st expression + total row. I manage to create top 5 and top 3 values but i have a problem with proper sorting. I've tried adding "hidden' expression with some calculation based on RANK and AGGR function but without success. Table should look like this:

06-07-2016 13-37-37.png

Is this possible? if so then how?

3 Replies
boorgura
Specialist
Specialist

do you just need it sorted descending??

If that's the case - simply sort by "Y-Value" descending

marcus_sommer

This is the best source for this topic: Perfectly Sorting Pivot Table (by A-Z. y-Value set for each dim-level)

- Marcus

vinieme12
Champion III
Champion III

For the expression you used add  TOTAL keyword as below

Select your first dimension >> Sort  by expression >> Descending

Uncheck Sort options for other dimensions.

SUM (  TOTAL<DIM1>  yourexpression         )

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.