Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple Condition (OR)

Hello,

I have an a chart with an expression that should be enabled depending on the selection of the user. I have created the condition but only the first part works and not the second (after the OR):

Condition:

Subfield(Variable1, '|',2) <> 'Apple' OR Subfield(Variable1, '|',6)<>'Clothes'

When I select "apple"  the column in the chart disappears but when I select "Clothes" it does not.

What am I doing wrong?

Thanks for your help

1 Solution

Accepted Solutions
tresesco
MVP
MVP

You perhaps need 'AND' rather than 'OR'.

Subfield(Variable1, '|',2) <> 'Apple' AND Subfield(Variable1, '|',6)<>'Clothes'

View solution in original post

3 Replies
its_anandrjs

Can you share sample file for the same also why subfield have 2 and 6 in the condition.

Subfield(Variable1, '|',2) <> 'Apple' OR Subfield(Variable1, '|',6)<>'Clothes'



Regards

Anand

tresesco
MVP
MVP

You perhaps need 'AND' rather than 'OR'.

Subfield(Variable1, '|',2) <> 'Apple' AND Subfield(Variable1, '|',6)<>'Clothes'

Not applicable
Author

You are right.

I guess I was wrong in my assumption. Because by placing an "AND" I thought that in order to the expression  to be disable I would need to choose both Apple and Clothes, thats why I went for "OR". But with AND is work as expected. Thanks for the tip.