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: 
Not applicable

Pivot table with sum TOTAL

I need to use a Dynamic table with TOTAL, but this should add up all the columns and not redo the calculation based on the total.

tks

Screenshot_1.jpg

1 Solution

Accepted Solutions
sunny_talwar

That simplify things:

Sum(Aggr(Sum(Metric)/Sum(Denom), Period, SECTION))


Capture.PNG

View solution in original post

6 Replies
sunny_talwar

Try this:

If(SecondaryDimensionality() = 0, Sum(Aggr(Sum(Metric)/Sum(Denom), Period)), Sum(Metric)/Sum(Denom))


Update: My bad the dimension should be Period and not SECTION.

sunny_talwar

I think after testing it out, this is what you might need:

If(SecondaryDimensionality() = 0 and Dimensionality() = 1, Sum(Aggr(Sum(Metric)/Sum(Denom), Period, SECTION)), If(SecondaryDimensionality() = 0 and Dimensionality() = 0, Sum(Aggr(Sum(Metric)/Sum(Denom), Period)), Sum(Metric)/Sum(Denom)))


Capture.PNG

antoniotiman
Master III
Master III

Hi,

You can try

If(SecondaryDimensionality()=0,
RangeSum(First(Sum(Metric)/Sum(Denom),1,NoOfColumns())),
Sum(Metric)/Sum(Denom
))

Regards,

Antonio

Not applicable
Author

It worked, tks.


but forgot to mention that the total of the top must also add up. As example.


Can you help me?


Screenshot_2.jpg


sunny_talwar

That simplify things:

Sum(Aggr(Sum(Metric)/Sum(Denom), Period, SECTION))


Capture.PNG

Not applicable
Author

Perfect... thanks so much...