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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Total in Pivot Table with different Weights

Hello,

I am trying to do a pivot table however the total is not correct.

data.PNG

as you can see the sum o ftotal weigh should be 2.4+ 4.5= 6.9 and it is not doing the sum the right way.

¿how can it be done?

i atached the qwd and the data.

thank you

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Sum(Aggr(sum(quantity)*avg(price)*Weight, month, type))

Capture.PNG

View solution in original post

4 Replies
sunny_talwar

May be try this:

Sum(Aggr(quantity*price*Weight, type, month))

Anonymous
Not applicable
Author

sorry wrong qwd

sunny_talwar

Try this:

Sum(Aggr(sum(quantity)*avg(price)*Weight, month, type))

Capture.PNG

Anonymous
Not applicable
Author

thank you very much.