Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.