Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table cannot display total value

Hi community,

My pivot table cannot display total value in Qlik Sense.

The data structure is shown below.

Type1Type2Value1Value2
AX18
BY56
CY56
DZ79

From below pivot table, the total of aggr(max(Value1),Type1, Type2) should be 13. However, it cannot display value.

total pivot.png

Does anyone help me on this? Thanks.

1 Solution

Accepted Solutions
sunny_talwar

Try this:

=Sum(Aggr(Only(Aggr(Max(Value1), Type1, Type2)), Type2))

Capture.PNG

View solution in original post

5 Replies
sunny_talwar

Try this expression:

=Sum(Aggr(Max(Value1),Type1, Type2))

Not applicable
Author

Hi Sunny

If I use Sum(Aggr(Max(Value1),Type1, Type2)), the total value of Y is 10 instead of 5. 

sunny_talwar

Try this:

=Sum(Aggr(Only(Aggr(Max(Value1), Type1, Type2)), Type2))

Capture.PNG

Not applicable
Author

Sunny, Thank you very much for your help.

sunny_talwar

Not a problem

I am glad I was able to help.

Best,

Sunny