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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
niha
Creator II
Creator II

If else statement scripting

Hello,

Here is my code:

if (
( Country = ('Italy', 'France', 'Spain', 'United Kingdom')),1,0) as Bigcountry,

I want to see Bigcountry as a separate dimension having these country.

Please suggest.

Regards,

Niha

1 Reply
Vegar
MVP
MVP

Try this expression:

if(match(Country,'Italy', 'France', 'Spain', 'United Kingdom'),1,0) as Bigcountry,