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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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.

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
Champion III
Champion III

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!