Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pathompong_vm
Contributor II
Contributor II

Need help with Expression (Accummulate and sum)

I do Accumulate report by Pivot Chart like this;Untitled.png

I'm stuck with 'Sales_total_accum' => I do in If Clause; If(Accu<=Sales_total_80%,Sum(Sales_All),0).

But no number in 'Total' level, I would like to sum it up. So I need you suggestion and help .You can view my solution in attach.

Thanks.

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Sum(Aggr(If(RangeSum(Above(Sum(Sales_All), 0, RowNo())) <= Sum(TOTAL <Department, Category> Sales_All)*0.8, Sum(Sales_All), 0), Department, Category, ProductID))

or this if you have QV12

=Sum(Aggr(If(RangeSum(Above(Sum(Sales_All), 0, RowNo())) <= Sum(TOTAL <Department, Category> Sales_All)*0.8, Sum(Sales_All), 0), Department, Category, (ProductID, (NUMERIC))))

View solution in original post

2 Replies
sunny_talwar

Try this

=Sum(Aggr(If(RangeSum(Above(Sum(Sales_All), 0, RowNo())) <= Sum(TOTAL <Department, Category> Sales_All)*0.8, Sum(Sales_All), 0), Department, Category, ProductID))

or this if you have QV12

=Sum(Aggr(If(RangeSum(Above(Sum(Sales_All), 0, RowNo())) <= Sum(TOTAL <Department, Category> Sales_All)*0.8, Sum(Sales_All), 0), Department, Category, (ProductID, (NUMERIC))))
pathompong_vm
Contributor II
Contributor II
Author

It's working very fine, Thank you so much 🙂