Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

AND /OR operations in set analysis

Hi,

I have to do and/or operations in set analysis . Code is following:

Count(

{<CurrYear_flag={'Y'} , Prev1Year_flag={'Y'}, Prev2Year_flag={'Y'}>}  +

{<CurrYear_flag={'Y'},Prev1Year_flag={'Y'},Prev2Year_flag -={'Y'}> }+

{<CurrYear_flag={'Y'},Prev1Year_flag -={'Y'},Prev2Year_flag={'Y'}>}

distinct ACCOUNT)

Can you please let me know right syntax to do this.  only first set {<CurrYear_flag={'Y'} , Prev1Year_flag={'Y'}, Prev2Year_flag={'Y'}>} is working. Rest 2 are giving 0 in results. Prev2Year_flag -={'Y'} is not working I try individually. It has data Y, - . I am looking for not 'Y' data. It is not working with Prev2Year_flag ={'-'} too

Thanks,

Akanksha

13 Replies
Not applicable
Author

Awesome! its working now.

Can you please explain logic of " being used here

sunny_talwar

Logic of "?

Not applicable
Author

double quotes used

sunny_talwar

Just the way search string works... look here:

A Primer on Set Analysis