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

Expression in filter pane: Select more than one choice from a dimension

Hi,

Is there a way to write an expression in order to create a "fast choice button" on a filter pane?

In the dimension Department, I have three departments (HR, Finance & Legal) that I would want to include in the filter pane as "Business support" in order to save the user two clicks.

I've looked around and found solutions on how to filter out one, or show sub-categories, but nothing on above. I'd be grateful if anyone can help, thanks!

1 Solution

Accepted Solutions
OmarBenSalem

Create a filter as follow:

if(Department='HR' or Department='Finance' or Department='Legal', 'MyGroup', 'other')

per analogy; u can even use it as a button not a filter

as follow:

create a treemap

as dimension:

=if(Dep='Dep1' or Dep='Dep2','MyGroup','Others')

as a measure : 1

result:

Capture.PNG

Capture.PNG

View solution in original post

2 Replies
OmarBenSalem

Create a filter as follow:

if(Department='HR' or Department='Finance' or Department='Legal', 'MyGroup', 'other')

per analogy; u can even use it as a button not a filter

as follow:

create a treemap

as dimension:

=if(Dep='Dep1' or Dep='Dep2','MyGroup','Others')

as a measure : 1

result:

Capture.PNG

Capture.PNG

Anonymous
Not applicable
Author

Perfect! Thank you!