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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Logical and between values in the same listbox

Hi all,

Choosing multiple values in one listbox is interpreted as a "logical or" between the values, but is it possible to get a "logical and" instead? What I want to do is show all patients with a combination of certain diagnosis.

Could someone please help me out?

Kind regars
Mi

6 Replies
Not applicable
Author

Hi Mi,

see the attached example and explanations from QV Help.

Good luck!

Rainer

Not applicable
Author

Thanks Rainer for your reply!

For some reason the setting for "And logic" isn't available for me to choose, even though I got administrator's rights. Also in the same listbox I would like to still be able to do some "OR" while doing some "AND" between the values in one listbox. Perhaps this is possible while changing the settings to "And logic"...

Mi

Not applicable
Author

Mi,

read carefully the strict conditions for a LISTBOX you will use in AND-mode. The AND-mode check box is only available if the conditions are fulfilled. It has nothing to do with admin rights or so.

The AND-mode option is only allowed under very strict conditions, imposed by the theory behind the QlikView logic. In order to be used in AND-mode, the following criteria must be fulfilled:

- the field must only exist in one logical table,

- this table must only contain two fields,

- the field must be the second column,

- the table must not contain any duplicate records, and

the table must be loaded using a Load distinct (If the table is loaded using a Select distinct statement, this must be preceded by a Load distinct * ; statement.)

Hope this helps!

Rainer

Not applicable
Author

I met the conditions stated for AND-logic in a listbox but however this didn't solve my problem, cause I still couldn't use logical AND and logical OR in one listbox. I had to solve it by using bookmarks and a macro.

Thanks for taking your time to help me though!

Kind regards

Mi

Not applicable
Author

Hello Mi,

thank you for letting me know what the status is!

Have a nice weekend.

Rainer

Not applicable
Author

Hi Mi Ta,

We're are having the same issue here. Anything you could share on this would be much appreciated.

Thanks!