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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Partial sum in pivot does not match with excel sum

Hi Experts,

Attaching a sample QV file, in which if I export the pivot table in excel and check the sum of expression column it does not match with partial sum in pivot.

Excel sum is correct which I need on pivot partial sum.

Is there any way to achieve this without changing the dimensions.

Thanks in advance.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Use this as expression:

=sum(Aggr(If(Value1-Value2, Value1-Value2-Value3,0),Company,Ref))

View solution in original post

3 Replies
swuehl
MVP
MVP

Use this as expression:

=sum(Aggr(If(Value1-Value2, Value1-Value2-Value3,0),Company,Ref))

sunny_talwar

Try this:

=Sum(Aggr(If(Sum(Value1)-Sum(Value2) <> 0, Sum(Value1)-Sum(Value2)-Sum(Value3),0),Company,Ref))


Capture.PNG

Anonymous
Not applicable
Author

Thanks a lot both of you

Both the solutions worked like magic on my original file also.