Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rangesum all values small than

I only know how to sum up values for one column using something like:

sum({<AMOUNT = {"<99"}>} AMOUNT)


What is the expression to rangesum columns only summing up values smaller than 99?


rangesum(data1, data2, data3, data4)

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

RangeSum is not a set aggregator, so you cannot use set expressions. You will need to use If or RangeMin expressions:

RangeSum(If(A < 99, A), If(B < 99, B))

or

RangeSum(RangeMin(A, 99), RangeMin(B, 99))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
Not applicable
Author

Mhh right now I get back a 99.

To verify, can I somehow do set analysis like for year in that?

jonathandienst
Partner - Champion III
Partner - Champion III

RangeSum is not a set aggregator, so you cannot use set expressions. You will need to use If or RangeMin expressions:

RangeSum(If(A < 99, A), If(B < 99, B))

or

RangeSum(RangeMin(A, 99), RangeMin(B, 99))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
tamilarasu
Champion
Champion

At first glance, I misunderstood the question. You can use Jonathan's solution.

RangeSum(RangeMin(A, 99), RangeMin(B, 99), RangeMin(C, 99), RangeMin(D, 99))