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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ameydiwanji
Contributor III
Contributor III

How to use if statement with multiple conditions

Hi,

I am creating a calculated field and using the below if statement to create additional column in my file with new value based on pre-existing value in other column

If(match([New ARN Code]='ARN-9760' OR 'ARN-41778'),'CBC'),'0'

when i am using single condition the function is working, but as i added one more condition to it, there is error:

Missing right parenthesis.

2 Replies
swuehl
Champion III
Champion III

The match should look like

Match(FIELD, 'Value1','Value2','Value3','ValueN')

and will return 0 when no match is found or the index of the listed values (first match).

ameydiwanji
Contributor III
Contributor III
Author

Hey Stefan,

Thanks for the solution. It worked