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 Match

Hello ,

Can you please point me to the right direction?

I am trying to run below script;

LOAD CATALOG,

IF (match(KITCHEN,BEDROOM, KITCHEN1, KITCHEN2, BEDROOM1));

SQL SELECT *

FROM database.dbo."database_name"

WHERE STATUS<>'XX'

not working, the error message is;

Error in expression:

If takes 2-3 parameters

What I am doing wrong?

Thank you in advance, all little helps :-)

4 Replies
MVP
MVP

Re: IF Match

The wrong expression part is:

IF (match(KITCHEN,BEDROOM, KITCHEN1, KITCHEN2, BEDROOM1));

If( <cond>, Then do this)  // you are missing this part

Not only that, probably your Match() is not right.

sivarajs
Valued Contributor II

Re: IF Match

you should give field name in match condition

match(fieldname,'string1','string2'...)

You are missing action part in If condition as tresesco mentioned

Not applicable

Re: IF Match

We could help you better if you can post what you're trying to achieve.

Not applicable

Re: IF Match

All sorted out now. Thanks for all the help, much appreciated. Elizabeth

Community Browser