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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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 (3)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

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
MVP
MVP

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.