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: 
ilanbaruch
Specialist
Specialist

Set Analysis And + Or

hi all

in my model I have an expression based set Analysis 'OR' :

Count({$<Flag_1={'1'}>+<Flag_2={'1'}> } distinct client_id)

I want to add another flag to the expression 'AND'  Flag_3 

any ideas ?

advanced thanks

Labels (2)
1 Solution

Accepted Solutions
MayilVahanan

Hi @ilanbaruch 

Try like below

Count({$<Flag_1={'1'},Flag_3 ={1}>+<Flag_2={'1'},Flag_3 ={1}> } distinct client_id)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
edwin
Master II
Master II

if you add Flag_3 inside each of the modifiers that will be equivalent to an AND:
<Flag_1={'1'},Flag_3={'1'}>

MayilVahanan

Hi @ilanbaruch 

Try like below

Count({$<Flag_1={'1'},Flag_3 ={1}>+<Flag_2={'1'},Flag_3 ={1}> } distinct client_id)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.