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: 
manjunaths
Contributor II
Contributor II

partial sum is showing wrong

Hi All,

 

I have five dimensions and one expression to calculate the sum of amount from a table.

When I select all the values from one dimension and  check the partial sum checkbox, the subtotal on top is showing wrong amount.  But when I export the same data to excel and calculate the sum, it will be different from Qlikview.

Thanks.

3 Replies
jyothish8807
Master II
Master II

Hi,

Try to check 'sum' of rows option.

Else you have to try with Aggr function.

3.5.jpg

Best Regards,
KC
Colin-Albert
Partner - Champion
Partner - Champion

In a pivot table you do not have the option to select whether the sum is calculated using the "expression total" or "sum of rows" as you do on a straight table. In a pivot table, the expression total is always used.

To get a sum of rows in a pivot table you must use the aggr() function with the pivot dimensions included in the expression.

Sum(AGGR(SUM(YourExpression),Dimesion1, Dimension2,....DimensionN))

 

 

manjunaths
Contributor II
Contributor II
Author

hi colin,
Thanks for your reply.
I have used "Sum(AGGR(SUM(YourExpression),Dimesion1, Dimension2,....DimensionN))".
But still it is not working as expected. When I select individual field then amount is showing correctly. But when I select all the values in the field then it not showing amount against any of them.