Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sum of field in set analysis

i want to use expression like

count(total_Amount = {<'>=base_amount+offer_value'>} id)

is it possible to doing sum of two fields?

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Count(id) is correct, unfortunately your set analysis does not work:

1) count({$ <total_Amount = {'>=base_amount+offer_value'}>} id)

but this is not enough because the right side of set analysis must have only 1 value computed as aggregation, you cannot use one (and obviously 2 or more) fields in this way.

you could use a Max(base_amount+offer_value) ..

hope this helps

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Count(id) is correct, unfortunately your set analysis does not work:

1) count({$ <total_Amount = {'>=base_amount+offer_value'}>} id)

but this is not enough because the right side of set analysis must have only 1 value computed as aggregation, you cannot use one (and obviously 2 or more) fields in this way.

you could use a Max(base_amount+offer_value) ..

hope this helps

Gysbert_Wassenaar

Maybe, maybe not. It depends. See this document for more information: set_analysis_intra-record.qvw


talk is cheap, supply exceeds demand