
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
multiple Or-And conditions in one expression
Hi,
I am trying to implement following if condition in set analysis:
IF condition: count(distinct if(R1='YES' or R2='YES' or R3 ='YES') and Flag=1),ID)
set analysis: count(distinct {<{R1='YES' + R2='YES' + R3 ='YES'},Flag=1>}ID)
also tried count(distinct {<R1='YES',Flag=1 + R2='YES',Flag=1 + R3 ='YES',Flag=1}ID)
But it's Not working...
What can I do to solve this with set analysis?
Thank you in advance.
Best regards
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@brunobertels i dont think that's correct syntax where you put that flag.
count(distinct {<R1={'YES'}> + <R2={'YES'}> + <R3 ={'YES'}> * <Flag={1}>}ID)
or
count(distinct {<R1={'YES'}, Flag={1}> + <R2={'YES'}, Flag={1}> + <R3 ={'YES'}, Flag={1}> }ID)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Try this
count(distinct {<R1={'YES'}> + <R2={'YES'}> + <R3 ={'YES'}>,Flag={1}>}ID)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@brunobertels i dont think that's correct syntax where you put that flag.
count(distinct {<R1={'YES'}> + <R2={'YES'}> + <R3 ={'YES'}> * <Flag={1}>}ID)
or
count(distinct {<R1={'YES'}, Flag={1}> + <R2={'YES'}, Flag={1}> + <R3 ={'YES'}, Flag={1}> }ID)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi brunobertels,
Thanks for reply
Not working for me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or maybe in your way
if(R1='YES' or R2='YES' or R3 ='YES' and Flag=1, Count(ID) )

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank You @stevejoyce ,
It's Working!🙂
