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

Combining Selections (Bookmarks?)

Hello,

If I had a table with the following fields...

IDField1Field2
1ac
2bc
3ad
4bd
5ac
6bc
7ad
8bd
9ac
10bc

and created listboxes for Field1 and Field2, how would I create a selection where the output was to extract all records where Field 1 = a OR Field 2 = c?

Thanks

John

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

If you select fields by a listbox you fill have your table filtered by that value, you can solve the problem loading data with a flag that sign the combinations of fields you need and using that flag in your expression

Hope it helps

Not applicable
Author

Thanks Alexandros but I'm not sure what you mean.

Could you attach a document that explains?

Thanks

John

alexandros17
Partner - Champion III
Partner - Champion III

Here it is an example, hope it helps

Not applicable
Author

Thanks for this Alexandros.

I was hoping that there was an easier way without re-loading the data.

The example I gave was a simplified version of what I was looking to do.

vincent_ardiet
Specialist
Specialist

Hi John,

Is your table a real table or a chart?

If it's a chart and if you have expressions in it, you can use set analysis to manage what you want.

You have to use an alternate state if you have QV11.

For example the list box for Field2 is in an alternate state named AS1.

With such an expression sum({$+<Field1=,Field2=AS1::Field2>} mymeasure)

Regards,

Vincent

Message was edited by: Vincent Ardiet

Not applicable
Author

Create a listbox for ID. Click on the titlebar of the listbox to select it.  Now, type this   =Field1='a' or Field2='c'    and hit enter. Make sure you start typing with the equal sign - that tells QlikView that you are entering a search expression. It will select all of the rows (by selecting ID) that meets your criteria.