Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

If(Field1 = A OR Field1 = B OR Field1 = C OR Field1 = D OR Field1 =..... , )

Is there an easier way of writing this?

If(Field1 = A OR Field1 = B OR Field1 = C OR Field1 = D OR Field1 =..... , )

I'd like to be able to write something like If(Field1 IN(A, B, C, D, E, F.....) , ).  I have a lot of acceptable values for Field1, and the actual field name and values are much longer strings

Thanks

1 Solution

Accepted Solutions

Re: If(Field1 = A OR Field1 = B OR Field1 = C OR Field1 = D OR Field1 =..... , )

HI

Try like this

=If(Match(Field1,'A','B','C','D'),1, 0)

Hope it helps

2 Replies

Re: If(Field1 = A OR Field1 = B OR Field1 = C OR Field1 = D OR Field1 =..... , )

HI

Try like this

=If(Match(Field1,'A','B','C','D'),1, 0)

Hope it helps

Not applicable

Re: If(Field1 = A OR Field1 = B OR Field1 = C OR Field1 = D OR Field1 =..... , )

Maaaaatch, that's the function!  Thank you!

Community Browser