Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
orangebloss
Contributor III
Contributor III

Pivot table totals with calculations and duplicate records

I'm using the following data to create a pivot table

orangebloss_0-1693922795965.png

There are two entries where the data is identical (Qty 5) but when added up in a straight table the correct Total Weight is calculated using 
(sum(Quantity))*[Est Weight])

(see right hand table below)

orangebloss_1-1693922949563.png

but the pivot table is giving the incorrect value of 1.065 when using the same syntax.

 

It will be obvious I'm sure but I can't quite get my head around it!

 

Labels (4)
4 Replies
Or
MVP
MVP

sum(Quantity*[Est Weight])

Rule of thumb: If you want correct totals, make sure everything is contained within the aggregation function.

orangebloss
Contributor III
Contributor III
Author

Can you expand on that?

orangebloss
Contributor III
Contributor III
Author

When I include everything I still get the same incorrect answer of 1.065 

Or
MVP
MVP

I'd suggest you check your data load, then. Perhaps you have a Distinct keyword somewhere, or you're otherwise limiting the amount of data. Since your Qlik capture doesn't show details, it's hard to guess.