Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Saro_2306
Contributor II
Contributor II

Expression inside Rangesum

Hi all,

Hope all are doing good, I have small problem in using Rangesum function. My table is like below. I need to perform addition of (A/B) / (D/E)  values. I need to show answer as 10 but while using rangesum function it gives output as 2.148

Formula used : =RangeSum(above(SUM(C),0,RowNo())) / RangeSum(ABOVE(SUM(F),0,RowNo()))

Can anybody helps me to perform above calculation. Thanks in advance

ABA/B as CDED/E as C(A/B) / (D/E)
100250502252
20054010010104
30031002004502
40041001503502
Labels (2)
1 Solution

Accepted Solutions
MayilVahanan

Hi Saro,

If its Text box, try like below

=Sum(Aggr(Above(Sum(C)/ Sum(F),0,RowNo()), A))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

Hi 

Try like below

Sum( Aggr(RangeSum(Above(Sum(C)/ Sum(F),0,RowNo())), A))

Screenshot:

mayilvahanan_0-1602671123463.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Saro_2306
Contributor II
Contributor II
Author

@MayilVahanan  Thanks for concern. I need to show sum value is Text box not inside table. your formula works inside table not in Textbox. it shows 26.

MayilVahanan

Hi Saro,

If its Text box, try like below

=Sum(Aggr(Above(Sum(C)/ Sum(F),0,RowNo()), A))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Saro_2306
Contributor II
Contributor II
Author

Thanks bro. Its working