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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
pauldamen
Partner - Creator II
Partner - Creator II

Using OR function in Qlikview

Dear all,

I am trying to us the OR function in Qlikview. My formula looks like this:

=if ( Month = 'Jan' or ' Feb' or 'Mar', text1, text2)

It doesn't give me an error but it is not showing me the correct answers. I tried putting the or in front of month between brackets but that doesn't help either.

Could someone help?

Regards,

Paul

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try either

=if ( Month = 'Jan' or Month = ' Feb' or Month = 'Mar', text1, text2)

or

=if ( match(Month,'Jan',' Feb', 'Mar'), text1, text2)

View solution in original post

1 Reply
swuehl
Champion III
Champion III

Try either

=if ( Month = 'Jan' or Month = ' Feb' or Month = 'Mar', text1, text2)

or

=if ( match(Month,'Jan',' Feb', 'Mar'), text1, text2)