QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save \$400. Learn More
New Contributor II

Need help with Expression (Accummulate and sum)

I do Accumulate report by Pivot Chart like this; 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.

Labels (7)

• Set Analysis

1 Solution

Accepted Solutions MVP

Re: Need help with Expression (Accummulate and sum)

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))))
2 Replies MVP

Re: Need help with Expression (Accummulate and sum)

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))))
New Contributor II

Re: Need help with Expression (Accummulate and sum)

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