Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
cmatcovich
Contributor
Contributor

Partial sum value in a pivot table

Hi everibody,

I need an expression to calculate a partial percentage (percentage on a subtotal) in a pivot table like this:

Dim1Dim2Sum(Value)SumTPartPerc
AAA1617%
AB2633%
AC3650%
Total6 100%
BBA106017%
BB206033%
BC306050%
Total60 100%
Total 66

I tried with this SumT expression:

sum(aggr(sum(Value), Dim1))


but the correct value (6 or 60) is shown only in some cells and not in all of them.

Tanks for any suggestion!

Corrado Matcovich

1 Solution

Accepted Solutions
Not applicable

Hi,

Try with this:

sum(TOTAL <Dim1> Value)

See the attached.

Regards,

Ricardo

View solution in original post

2 Replies
Not applicable

Hi,

Try with this:

sum(TOTAL <Dim1> Value)

See the attached.

Regards,

Ricardo

cmatcovich
Contributor
Contributor
Author

It works (and il was so easy ...)

Thanks a lot.

Regards

Corrado