Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
prasadcm
Creator II
Creator II

Rangesum with Aggr?

Hi ,

I have straight with expressions as Amount =Sum(Amount),Balance=RangeSum(above(total(sum(Amount)),0,rowno(Total)))

Balance is total of Amount

102.png

Now when i search for bank name eg: Bank Indosuez singapore

its amount is 102000 & balance is 102000 which is correct

But when i dont make any selections and view the table I get 103.png

Above bank Balance gets added

I want the balance to be grouped by bank name

I tried with aggr(RangeSum(above(total(sum(Amount)),0,rowno(Total))),[Bank Name]) bt didn't get desired output...

stalwar1

14 Replies
prasadcm
Creator II
Creator II
Author

No,How am i supposed to do that?

sunny_talwar

I will take a look at the attached sample you have posted on the other thread and give you suggestion

prasadcm
Creator II
Creator II
Author

Hi stalwar1

Solution suggested by you works,but i am getting duplicate records for it.

Regards,

Prasad

sunny_talwar

Did it? I am still not fully sure what the expected output here is? Would be able to elaborate where you see the issue. May be take snapshots and circle the issue for us?

Thanks,

Sunny

prasadcm
Creator II
Creator II
Author

Hi stalwar1‌,

b1.png

b2.png