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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a button with an "or" function

Sorry all, newbie question here.

I have two seperate fields - 1. Design, 2. Effectiveness

Each field has four options - Red, Amber, Green, N/A

I want to create a button that will select all items that are red or amber for either the Design or Effectivness (i.e. Design - Green, Effectivenss - Amber should show up).

Is this possible?

Really appreciate the help!

5 Replies
calvindk
Creator III
Creator III

Yes, start by creating the button. Then in ACTION, you click ADD and then add SELECT IN FIELD

In the field you enter Design

In the search string try

='(Red|Amber)'

Not applicable
Author

Thanks Anders.

I'd like to take it a step further though.

How do I say if Design = '(Red/Amber)' OR Effectiveness = '(Red/Amber)'

calvindk
Creator III
Creator III

Well you add an extra action to the button that does it for the other field

Not applicable
Author

I tried that but it is now only showing me instances where both the Design and Effectiveness fields are amber/red.  I'd like to switch it to an or...

calvindk
Creator III
Creator III

if i understand correctly you want anything showing up that has either a amber/green rating in design or a green/amber rating in effectiveness.

This can be done if you have another value to select, such as an id.

Instead of selecting the green/amber then you select the corresponding id's.