Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

Order pivot table by expression

Hi.

I have a pivoting table with 2 dimensions: Codigo and Imputación, I put it in the 2 dimensions that it orders by expression: sum (Quantity), but it orders it only by the first dimension, it does not work when I display the second dimension by Imputation.

Attached example.

Pegar.PNG

Pegar1.PNG

1 Solution

Accepted Solutions
sunny_talwar

Try with a calculated 2nd dimension

=Dual(Imputacion, Aggr(Sum(Cantidad), Codigo, Imputacion))

and sort it using this expression

Aggr(Sum(Cantidad), Codigo, Imputacion)


Capture.PNG

View solution in original post

4 Replies
sunny_talwar

Try with a calculated 2nd dimension

=Dual(Imputacion, Aggr(Sum(Cantidad), Codigo, Imputacion))

and sort it using this expression

Aggr(Sum(Cantidad), Codigo, Imputacion)


Capture.PNG

spividori
Specialist
Specialist
Author

Well, it works perfect, but, It should not work by checking the option: "By expression" and the expression that we indicate?.

Regards.

sunny_talwar

It should not work how? Not sure I understand

spividori
Specialist
Specialist
Author

Sort by the expression Sum (Quantity) in all dimensions, if I checked that option. Also, if you change the position of the dimensions, the solution that you gave me does not work..

QlikView makes it perfect:

Captura.PNG

Regards.