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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Or selections between list boxes

hi everyone!

i want to know if it is possible do an "or" selections between list boxes.

I found this post, but no one could help me because they talk about "and" selections in the same list box.

http://community.qlik.com/thread/38610

http://community.qlik.com/message/127398#127398

http://community.qlik.com/message/118112#118112

thank you!

gerardo

18 Replies
Not applicable
Author

i attached a sample in the main question....thanks!

swuehl
MVP
MVP

Well, skip the associative search for now...

Open search bar on field DEALS.deal_id and enter

=match(COMPANIES.company_id,157,18,498) or DEALS.is_tourism=1

I get 588 deal IDs returned.

If I select only DEALS.is_tourism=1, I get 401 deals.

If I select only COMPANIES.company_id 157 and 18, 187 deals.

Since company_id 498 is also is_tourism=1, this looks reasonably to me.

--Stefan

Not applicable
Author

im doing something wrong.....because that give me the deals from the first condition (COMPANIES.company_id,157,18,498) but not from the second part (DEALS.is_tourism=1) and the search bar look for "or" text criteria....

thanks

swuehl
MVP
MVP

What do you mean with "..the search bar look for "or" text criteria..."

Just to clarify, I am not talking about the search object (well, haven't tried with that), I am talking about the search field that you get when clicking on the caption of the list box and start typing or by clicking on the magnifying glass.

Then you maybe need to clear the field from wildcards * and enter the complete line exactely as given here:

=match(COMPANIES.company_id,157,18,498) or DEALS.is_tourism=1

Hope this helps,


Stefan


Not applicable
Author

excellent! its working very well.....

now....can i do something more "user friendly" with this?

thank you very much.....

swuehl
MVP
MVP

Sure, but since we started with a reference thread that involved too much complexity, we need to check what is the right level of complexity.

You could for example create a variable with an input box for the companies id, and create a button with action select in field for field deals and an appropriate search string. If I find time, I will post a proposal.

Do you think that will help your users?

edit: Attached sample

Not applicable
Author

of course that can help.

And not only for this case but olso for others situations that i haven't resolved yet...

swuehl
MVP
MVP

Hope you have noticed my above edit. Something like this?

Not applicable
Author

yes, the bottom is perfect.

thanks!