Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

nivellen11
New Contributor II

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
Valued Contributor

Re: Pivot table sorting with 2 calculated dimensions

do you just need it sorted descending??

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

Re: Pivot table sorting with 2 calculated dimensions

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

- Marcus

vinieme12
Esteemed Contributor II

Re: Pivot table sorting with 2 calculated dimensions

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         )

Community Browser