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: 
bsbernabe
Creator
Creator

PIVOT Partial Sums

Hi,

I have pivot Table, base on my observation the Partial Sums is not equal to Total Sum, I am trying to get the Max for EVALUATED_PRICE, here my script in expression max(EVALUATED_PRICE) but the Total Partial Sum is not equal see below screenshot

Suppose to be :

32,640          24,160

28,400          24,160

61,040          48,320

Best Regards,

Bing

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

You need a Sum of rows type of expression, like:

Sum(Aggr(Max(EVALUATED_PRICE), [MATERIAL GROUP DESCRIPTION], [YEAR SOLD (BN)], CATEGORY, [MATERIAL DESCRIPTION]))

(You need all the pivot dimensions in the Aggr - I am assuming that they are the bold fields, Change if necessary)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
Anil_Babu_Samineni

Please attachr QVW

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
antoniotiman
Master III
Master III

Try this

Sum(Aggr(Max(EVALUATED_PRICE),Dim1,Dim2,Dim3))

jonathandienst
Partner - Champion III
Partner - Champion III

You need a Sum of rows type of expression, like:

Sum(Aggr(Max(EVALUATED_PRICE), [MATERIAL GROUP DESCRIPTION], [YEAR SOLD (BN)], CATEGORY, [MATERIAL DESCRIPTION]))

(You need all the pivot dimensions in the Aggr - I am assuming that they are the bold fields, Change if necessary)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
bsbernabe
Creator
Creator
Author

Hi Jonathan,

It's working thank you so much for your support i really appreciate.

Best Regard

Bing