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: 
Qvmaster2019
Creator
Creator

Pivot Table Shows Wrong Sum

Please take a look at the column "QTR Growth (Product)" which is just the product of "QTR Index" and "Weight".

It's total should be around 100% but what it is doing is multiplying Total of QTR Index by the Total of Weight.

How can i correct this?

Please advise.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

So you want a sum of rows here?

Please check the HELP for an explanation of sum-of-rows in a pivot table using advanced aggregation, I think your expression could look like

=sum(aggr(

sum([2011 Sales])/sum(total <[Product Group]> [2011 Sales]) * sum(Data-(Data*AdjustedFactor))/100,

[Product Group],Mnemonic))

View solution in original post

2 Replies
swuehl
MVP
MVP

So you want a sum of rows here?

Please check the HELP for an explanation of sum-of-rows in a pivot table using advanced aggregation, I think your expression could look like

=sum(aggr(

sum([2011 Sales])/sum(total <[Product Group]> [2011 Sales]) * sum(Data-(Data*AdjustedFactor))/100,

[Product Group],Mnemonic))

Qvmaster2019
Creator
Creator
Author

Thanks swuehl!

I did not know there's a help file for that sum-of-rows.

Thanks a lot!