Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

pauldamen
Contributor 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

1 Solution

Accepted Solutions
MVP
MVP

Re: Using OR function in Qlikview

Try either

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

or

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

1 Reply
MVP
MVP

Re: Using OR function in Qlikview

Try either

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

or

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

Community Browser