Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikNewbie123
Contributor
Contributor

Qlik Sense Set Expression - Multiple Conditions

Hi all,

I'm stuck trying to put multiple conditions in a set analysis expression. What I am trying to do is only count those that aren't Ended AND CRP - Final Admin, but in two scenarios (EndDateFlag and OldReviewEndDateFlag).

I can't seem to get the AND and OR conditions correct.

Count({<[EndDateFlag] -= {'Ended'},[Review.Active_Task_Name] -= {'CRP - Final Admin'}>

+

<[OldReviewEndDateFlag]-={'Ended'},[Review.Active_Task_Name] -= {'CRP - Final Admin'}>}

distinct[Review.ID])

 

I appreciate any help!

2 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi @QlikNewbie123 ,

Your expression logically is doing as below:
...
Where [Review.Active_Task_Name] <> 'CRP - Final Admin'   AND (  [EndDateFlag] <> 'Ended'  OR [OldReviewEndDateFlag] <> 'Ended' )

Is this what are you looking for?

QlikNewbie123
Contributor
Contributor
Author

So basically...

(Where EndDateFlag <> Ended AND Active Task Name <> CRP Final Admin) OR (Where OldReviewEndDateFlag <> Ended AND Active Task Name <> CRP Final Admin), then count distinct[Review.ID]

 

does that make it clearer? 🙂