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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hide Expression in Pivot table without hiding its Total (URGENT)

Hi Folks,

I have below sample table in my dashboard:

Col1Col2Col3
AX10
BY20
CX30
DY40

Using SUM() and AVG() over data and pivoting Col2 I got below o/p:

Col2XXYYTotalTotal
Col1SUMAVGSUMAVGSUMAVG
A1010 1010
B 20202020
C3030 3030
D 40404040
Total4020603010025

I need to hide AVG expression without supressing its Total as shown below:

Col2XYTotalTotal
Col1SUMSUMSUMAVG
A10 1010
B 202020
C30 3030
D 404040
Total406010025

I have tried Dimensionality() and SecondaryDimensionality() but couldn't find proper solution.

Please help.

Thanks in advance,

Parag

1 Reply
Not applicable
Author

I Think of 2 possible solutions

(sum(x) +sum(y))/ (count(col1)+count(col2)) as total average

or

avg(

     Aggr(sum(x+y)

      ,

     Col1,col2

    )

)

Both expressions should calculate the total average