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: 
dlechuga
Contributor
Contributor

multiple conditions in new calculated field

Hi! 

I'm very new at this I am starting to learn qlik and i am trying to do the following :

Create a calculated field with multiple conditions.

The follwing formula with one condition is working but once i try to include "and" or "or" it stops working

If([COMMERCIAL / RETAIL]='Partner - Audit Firm','Partner',[COMMERCIAL / RETAIL])

Any suggestions? what am trying yo do is if it found the following values 'Partner - Audit Firm' 'Partner - Consulting Firm' 'Partner - Private Equity Firm' then 'Partner' else value from [COMMERCIAL / RETAIL]

 

Thanks!!! 

Labels (3)
2 Replies
DavidM
Partner - Creator II
Partner - Creator II

It's better to use if & (wild)match in this case:

If(Wildmatch([COMMERCIAL / RETAIL],'Partner - Audit Firm','Partner - Consulting Firm','Partner - Private Equity Firm' )>0,'Partner',[COMMERCIAL / RETAIL])

dlechuga
Contributor
Contributor
Author

Thanks a lot! it did work. =D