Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
We value your feedback – take our 5-minute QlikView modernization survey
cancel
Showing results for 
Search instead for 
Did you mean: 
gfisch13
Creator II
Creator II

IF Condition with a list

Hi folks - I'm trying to crreate an filter box within my script and I keep getting "missing )" errors.

I'm selecting values from a field that are either Included or Excluded.  I just can't seem to get the syntax right.  Any help is appreciated.

Am I using the correct function with MATCH??

if(match(SCBCOUNTRY='AE','BH','QA'), 'Excluded', 'Included') as CountryInd,

 

Thanks, George

Labels (3)
2 Replies
Or
Champion
Champion

if(match(SCBCOUNTRY,'AE','BH','QA'), 'Excluded', 'Included') as CountryInd,

Wrong syntax for match. It doesn't take an equal sign.

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

Maybe something like below.

Function is correct but some syntax error.

if(match(SCBCOUNTRY , 'AE','BH','QA'), 'Excluded', 'Included') as CountryInd

 

Thanks,

Ashutosh