Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

if condition in set analysis. ?

Hi All ,

How can I write this if condition in set analysis.

=If(Count(DISTINCT if(dealstate_id=8 or dealstate_id =9 ,customerIdNumber))>0,'Yes','No')

3 Replies
tresesco
MVP
MVP

If(Count( Distinct {<dealstate_id={8,9}>} customerIdNumber) >0,'Yes','No')

nishanthi_8
Creator
Creator

if(count(distinct {<dealstate_id={8,9}>} customerIdNumber)>0,'Y','N')

ogautier62
Specialist II
Specialist II

Hi,

something like that :

if(count ({<dealstate_id = {8,9} >} distinct customerIdnumber ) >0,'yes','no')

it depends on your context : chart or textbox

may be add all in count if necessary

in a chart this will be calculated on your dimension

aggr if you want another dimension

regards