Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

RangeSum on different column

Hello

I've been trying to calculate a Sum of an expression using only one value per Rank.

Rank     Product         Expression        RequestedColumn

1          1                    14                              14 

1          2                    14                              14

2          3                    14                              28

2          4                    14                              28

3          5                    12                              40

13         6                   12                              40

I've tried multiple rangesum / above / aggr combinations but i can't seem to get it to work.

Either returning all 0 or nested aggr as result.

This is my first post on the community help forum, please advise if i need to provide additional information or should formulate question differently.


Thanks in advance,

Regards

Daan

1 Solution

Accepted Solutions
sunny_talwar

May be this?

=Aggr(NODISTINCT RangeSum(Above(CalculatedField, 0, RowNo())), Rank)

View solution in original post

4 Replies
sunny_talwar

May be this?

=Aggr(NODISTINCT RangeSum(Above(CalculatedField, 0, RowNo())), Rank)

enriquem
Creator
Creator

Hi,

I don't know what you are trying  to rangesum or sum, but maybe you can use the 'set analysis'. I leave you here a link to see some examples Set Analysis - Ejemplos

Regards

Kind Regards,
Enrique Mora.
Not applicable
Author

Hey Sunny

Thanks for your quick response implemented and tested it in my project and so far so good!

I'm going to lookup some extra information about NODisctinct since i have never used this yet.

sunny_talwar

Its a pretty handy thing, but I would try to avoid its use to bare minimum. In this case, I can't think of another way to do it and that's why I had to propose this solution