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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
drors
Partner - Contributor
Partner - Contributor

AND operator in filters

Hello everyone.

I have dataset looks like

ClientIDProductID
1X
1Y
1Z
2X
2Z
3Y

 

Currently, I have a product filter, I can select multiple products (let's say X,Z) and the data displayed is all the clients that have X OR Z

I want to be able to change the filter to display only clients that have X AND Z

is it possible? did anyone try to do it?

 

Labels (1)
5 Replies
siddharthbanerjee1998
Contributor III
Contributor III

I have tried working this out, but have not been able to. I was trying an approach where while loading the data, we create another calculated column checking all the product IDs against a single client ID and creating a flag based on the same. Then we could have used that flag in the filter pane to get all combinations such as Product ID X and Y or Product ID Y or Z and so on. However, the logic doesn't work out for me. 

I don't think this is possible. In case someone figures this out, please post the same here so that we all can learn!

Kushal_Chawda
MVP
MVP

siddharthbanerjee1998
Contributor III
Contributor III

Thanks Kush!

Wasn't aware of this. Glad to have learnt something new today!

Kushal_Chawda
MVP
MVP

Np friend. This community is great place to learn.

DrorWaves
Contributor
Contributor

Thanks! I will try it and let you know!