Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
stonecold111
Creator III
Creator III

if condition for mutiple values in field

if(field1='colr code','freq data' and field2='group', 'pqr',abc')

how to write this in qlikview

i want multiple selections for the first field i mean field1

1 Solution

Accepted Solutions
Sergey_Shuklin
Specialist
Specialist

Hello, Suresh!

Try to use "or": =if((field1='val1' or field1='val2' or field1='val3') and field2='val1','A','B')

View solution in original post

6 Replies
Anil_Babu_Samineni

May be this?

if(Match(field1, 'colr code','freq data') and Match(field2, 'group', 'pqr',abc'), 'Yes', 'No')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Sergey_Shuklin
Specialist
Specialist

Hello, Suresh!

Try to use "or": =if((field1='val1' or field1='val2' or field1='val3') and field2='val1','A','B')

stonecold111
Creator III
Creator III
Author

not working . i dont know why

stonecold111
Creator III
Creator III
Author

working .. thank you

Anil_Babu_Samineni

May be you need condition as either this or that. That is the case it should work

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
stonecold111
Creator III
Creator III
Author

if it matches means it returns 1 or 2 or 3

so i think i you need to give if(match(.....)>0

am i right??