Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Prav
Contributor II
Contributor II

Partial Sum problem

Hi,

 

I have a pivot table like below. Bold ones are partial sums.

Capture1.PNG

 
 

I am struggling with expression 'H'. For 'H', I need to multiply the TOTAL of  'G' which is 173,157.33 with expression 'B' which is 7.94 and then divided by 100. The result for first column should be something like (173,157.33 * 7.94)/100 =13,748.69. But it is showing like 19,589.26 which is incorrect.

Expression 'G'  = E - F.

Can anyone help me on this?

Many thanks.

1 Solution

Accepted Solutions
Prav
Contributor II
Contributor II
Author

Hi,

Sorry for late reply. I solved this issue by creating individual variables and added them all.

Thanks.

View solution in original post

4 Replies
Prav
Contributor II
Contributor II
Author

I have also tried advanced aggregation: sum(aggr(expression,Dimension)) but no use. Can anyone help me on this please?

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Help link:

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/NestedAggregation...

The only other thing of which I can think is your needing to use RowNo() or RecNo() in the load script to be sure every row in your data is unique to ensure you get what you want in your calculations.  

Only other link I have is the following that may be helpful related to AGGR:

https://community.qlik.com/t5/Qlik-Design-Blog/AGGR/ba-p/1475149

If you want to search further on the Design Blog area, use the following link:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Hopefully one of these will prove to be helpful.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
sunny_talwar

What expressions are you using for all the different rows? Can you share a sample to help you better here?

Prav
Contributor II
Contributor II
Author

Hi,

Sorry for late reply. I solved this issue by creating individual variables and added them all.

Thanks.