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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jblomqvist
Specialist
Specialist

What is the actual result when entering multiple values in Set Analysis as filters?

Hello,

I just wanted to check, what is the actual result when you enter multiple values as filters in set analysis?

E.g. I have sales analysis for customers where Dimension is Customer. The following is the expression:

Sum({$<ProductCategory={'Swimwear', 'Sportswear'}>}Sales)

Is Sportswear and Swimwear treated as an AND or an OR?

Would it give me results for customers who have purchased Swimwear and Sportswear?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

It's like a selection in field ProductCategory, OR logic by default.

View solution in original post

3 Replies
swuehl
MVP
MVP

It's like a selection in field ProductCategory, OR logic by default.

jblomqvist
Specialist
Specialist
Author

Thank you for clarifying Swuehl,

So if I wanted to create set analysis where I want to know customers who have purchased Sportswear and Swimwear, how can I do that?

swuehl
MVP
MVP

Maybe like

Sum({<Customer = p({$<ProductCategory={'Swimwear'}>} ) * p({$<ProductCategory={'Sportswear'}>} ) >} Sales)

And if you want to limit the sales to these two product cats:

Sum(

{<

     Customer = p({$<ProductCategory={'Swimwear'}>} ) * p({$<ProductCategory={'Sportswear'}>} ),

     ProductCategory={'Swimwear', 'Sportswear'}  

>}

      Sales)