Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Qliksense_77
Creator
Creator

Subtotal in pivot depending of order of dimensions

Hi

In pivot tabel I only want subtotals (the red marks below ..same as dimensionality()=1) when dim1 comes first.

If the user pulls dim2 to be  dimensionality()=1 (at the yellow mark below) then I dont want any subtotals.

Is this possible?

Qliksense_77_1-1695902048236.png

 

 

Labels (4)
1 Solution

Accepted Solutions
Or
MVP
MVP

You can't dynamically enable or disable subtotals, as far as I know. You can use expressions to return null instead of a figure in certain scenarios (e.g. if the first dimension is Dim1, return a subtotal, otherwise return null), using some combination of Dimensionality() and GetObjectDimension() in an If() statement, but the actual row will still be there.

View solution in original post

2 Replies
Or
MVP
MVP

You can't dynamically enable or disable subtotals, as far as I know. You can use expressions to return null instead of a figure in certain scenarios (e.g. if the first dimension is Dim1, return a subtotal, otherwise return null), using some combination of Dimensionality() and GetObjectDimension() in an If() statement, but the actual row will still be there.

Qliksense_77
Creator
Creator
Author

@Or , thanks:)