Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
iczkla
Contributor III
Contributor III

Set expression with availability to filter down

Hello,

I have a simple set analysis expression in which I am counting IDs for products from chosen categories:

Count(distinct{<[Category]={'7','8','9')}>}[ID])

Unfortunately using set analysis like this restricts me from filtering down to only see results for one of those. Is there a way to make this more flexible - measure by default showing result only for 3 categories but also allowing to filter down for example only for 7?

 

Thank you for any help

Labels (6)
1 Solution

Accepted Solutions
MayilVahanan

HI

Try like below

Count(distinct{<[Category]*={'7','8','9'}>}[ID])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI

Try like below

Count(distinct{<[Category]*={'7','8','9'}>}[ID])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Prem0212
Creator
Creator

I am giving you the example set analysis expression. I hope this works for you.

Count({<[Region]={'Central','East','South'}>}distinct [Product ID])

 

Please like and accept the solution if u find an answer