Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sorting As Per Partial Sums

Dears,

Good day.

I am having a pivot table with partial sums (columns totals) on the right-side, and I would like to do the sorting of the table on base of those total amounts, is that possible??

Many thanks in advance.

Mauriccio

4 Replies
brenner_martina
Partner - Specialist II
Partner - Specialist II

Hi,

you can enter in the Tab Sort an expression like Sum(Sales) for all dimensions, ASC or DESC

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

sorting by expression in Pivot Tables is somewhat tricky... The sorting expression is evaluated for each individual Dimension, not for a combination of Dimensions.

For example if pivot table shows Sales by Customer and Product, and both Dimensions are sorted by sum(Sales), descending - the Customers will be sorted based on total Sales by Customer, and the Product will be sorted based on the total Sales by Product (not based on sales of this product for this particular customer). So, the most selling Product overall will always appear first, even if it happens to be #5 for a particular Customer.

just wanted to clarify this point...

Not applicable
Author

Dear Oleg,

Actually, it is a very good point, because I tried what Martina suggested (many thanks Martina), however It does not sort descending my customers as per total of sales, in fact, appears a big mess.


Any thoughts??

Mauriccio

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

It's hard to guess what you specific problem might be, without seeing your application...

You can try and build a sorting espression using function AGGR() and forcing all the dimensions into the calculation