Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total Row

Hi, in the attached example, I don´t know how to get the correct Total Value for the Final Balance column, as you can see the Total row is not showing the correct value of the detail sum that should be 210.

Any idea of how can I get it?

1 Solution

Accepted Solutions
sunny_talwar

May be this?

Sum(Aggr(if(aggr(sum(Forecast),Cod_prod)*vCost >aggr(sum(Balance),Cod_prod),sum(Balance),sum(Forecast)*vCost), Region, Cod_prod))

Capture.PNG

View solution in original post

6 Replies
sunny_talwar

Try the attached

Capture.PNG

Not applicable
Author

Great, now taking one step further, if I add a extra dimesion  how could I get the same result

ST.png

agustinbobba
Partner - Creator
Partner - Creator

Try this!, on the chart properties

211291.png

Best regard!

Agustin

sunny_talwar

Add a dimension? Not sure I understand? Which table are we wanting to fix? the top one or the bottom one and which expression?

sunny_talwar

May be this?

Sum(Aggr(if(aggr(sum(Forecast),Cod_prod)*vCost >aggr(sum(Balance),Cod_prod),sum(Balance),sum(Forecast)*vCost), Region, Cod_prod))

Capture.PNG

Not applicable
Author

Thanks, that's exactly what I want