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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple IF statements

Hi everyone,

looking for some help with IF statements. Basically I would like to setup multiple "if conditions" in one expression... but I cannot seem to get it to work.

Example:

if(WildMatch(UNIT_TYPE,'*I*'), UNIT_TYPE) or

if(WildMatch(UNIT_TYPE,'*O*'), UNIT_TYPE) or

if(WildMatch(UNIT_TYPE,'*E*'), UNIT_TYPE)

Even if I replace "or" with "and" it does not work. Any ideas on how I can do this?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this...

if(WildMatch(UNIT_TYPE,'*I*') or WildMatch(UNIT_TYPE,'*O*') or WildMatch(UNIT_TYPE,'*E*'), UNIT_TYPE)

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Try this...

if(WildMatch(UNIT_TYPE,'*I*') or WildMatch(UNIT_TYPE,'*O*') or WildMatch(UNIT_TYPE,'*E*'), UNIT_TYPE)

jonathandienst
Partner - Champion III
Partner - Champion III

If(WildMatch(UNIT_TYPE,'*I*', '*O*', '*E*'), UNIT_TYPE)


Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

if(WildMatch(UNIT_TYPE,'*I*', '*O*', '*E*'), UNIT_TYPE)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thank you everyone!