Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

How to get the total from the below chart ?

Hi All,

Please have a look of my chart :

Capture.PNG

The RO expression is  :

=if(SUM(recommended_order_qty)=0 , sum(scheduled_receipts_yielded_unit) , Sum(recommended_order_qty))

Thus , when are doing total is not reflecting.

The Total should be : 7,628,457

Sample Qlikview attached.

1 Solution

Accepted Solutions
sunny_talwar

Try this expression:

=Sum(Aggr(if(SUM(recommended_order_qty)=0 , sum(scheduled_receipts_yielded_unit) , Sum(recommended_order_qty)), [Planning Month]))

View solution in original post

2 Replies
sunny_talwar

Try this expression:

=Sum(Aggr(if(SUM(recommended_order_qty)=0 , sum(scheduled_receipts_yielded_unit) , Sum(recommended_order_qty)), [Planning Month]))

Gysbert_Wassenaar

Something like:

=sum(aggr(if(SUM(recommended_order_qty)=0 , sum(scheduled_receipts_yielded_unit) , Sum(recommended_order_qty)), [Planning Month]))

If the name of the field you use as dimension is not [Planning Month] then replace it with the actual name.

Note, if you use a straight table instead of a pivot table you can simply set the Total Mode of that expression to Sum of Rows. Much easier.


talk is cheap, supply exceeds demand