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

Set Analysis: use field selection to define set

Hi,

Can anyone help, or point me to a discussion on using one field to subset another field.

I have a list CLAIMYEAR, and I want to select QUOTEYEAR and sum a value QUOTEV

Something like Sum({$<QUOTEYEAR={CLAIMYEAR} >} QUOTEV) ?

I.E. if CLAIMYEAR 2 and 3 are selected, I want the sum of QUOTEV for QUOTEYEAR's 2 & 3...

Best regards,

M.

2 Replies
ali_hijazi
Partner - Master II
Partner - Master II

sum(if (claimyear = quoteyear,quotev))

I can walk on water when it freezes
Not applicable

Assuming that you have a unique identifier for each claim / quote (in this instance I assumed it is called ClaimID)

=sum(aggr(if(CLAIMYEAR = QUOTEYEAR,QUOTEV,0),ClaimID))