Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mariam_vd
Contributor II
Contributor II

Multiple actions assigned to BUTTON with AND/OR operator

Hello,

I need to create a button that will select values matching the search criteria:
[Step=1 AND (Status=A OR Status=B)]

And the second button: 

[Step=2 AND (Status=A OR Status=B)]

I try to create a button with multiple actions, each of which will select values matching the search criteria.
But I don't see how to provide 2 possible values for one field. 

Neither | not ; work as OR 

mariam_vd_1-1718899729972.png

Do you know what kind of scripting is used there?

Labels (2)
1 Solution

Accepted Solutions
MatheusC
Specialist II
Specialist II

change your action to

Select values ​​in a field

MatheusC_0-1718989593722.png

 

 

then put the values ​​to be filtered.

='valueA;valueB'


- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

5 Replies
MatheusC
Specialist II
Specialist II

@mariam_vd 
see it this way

='valueA;valueB'
Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
mariam_vd
Contributor II
Contributor II
Author

When I type it like that, the button doesn't assign any filers (nothing happens when I press it)

I tried:

='valueA;valueB'

 ='=valueA;valueB'
='valueA,valueB'
='=valueA,valueB'
='valueA';'valueB'
=''valueA';'valueB''
 and other possible variations.

it only works like that:
='value1'


Or like that:
='value2'

mariam_vd
Contributor II
Contributor II
Author

And I also tried to add another action, so that the first action apply value 1 
and the second action apply value 2

But as there are no operators between the action, each next overwrites the previous one

MatheusC
Specialist II
Specialist II

change your action to

Select values ​​in a field

MatheusC_0-1718989593722.png

 

 

then put the values ​​to be filtered.

='valueA;valueB'


- Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
mariam_vd
Contributor II
Contributor II
Author

Thanks, @MatheusC 

It worked.
And I was able to add another action (same but for another field), which also worked together with the first one (confined with AND, as I needed)