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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

Script prob

Hey,

My script is:

Load CityId,

Cityname

CountryCode

from abc.qvd ;

i want to apply condn where Country Code = US and CA

I applied like:

Load CityId,

Cityname

CountryCode

from abc.qvd  where CountryCode = {'US' , 'CA'} ;  but giving error.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Load CityId,

Cityname,

CountryCode

from abc.qvd  where Match(CountryCode, 'US' , 'CA') ;

Edit: Corrected a comma.

View solution in original post

10 Replies
tresesco
MVP
MVP

Try like:

Load CityId,

Cityname,

CountryCode

from abc.qvd  where Match(CountryCode, 'US' , 'CA') ;

Edit: Corrected a comma.

sushil353
Master II
Master II

Hi,

Try this:

Load CityId,

Cityname

CountryCode

from abc.qvd  where Match(CountryCode ,'US' , 'CA') ;

sunilkumarqv
Specialist II
Specialist II

try this

Load CityId,

Cityname,

CountryCode

from abc.qvd  where CountryCode='US' and CountryCode='CA';

OR

Load CityId,

Cityname,

CountryCode

from abc.qvd  where Match(CountryCode,'US' ,'CA');

ashwanin
Specialist
Specialist

Use Where Match (CountryCode,'US','CA') ;

qlikviewwizard
Master II
Master II

Hi

Use like this:

LOAD CITYID,

CITYNAME,

COUNTRYCODE

FROM ABC.QVD  WHERE MATCH(COUNTRYCODE,'US' ,'CA');

nikhilgarg
Specialist II
Specialist II
Author

Hey,

I have used like:

Table1:

Load CityId,

Cityname,

CountryCode

from abc.qvd ;

Table2:

Load * resident Table1 where CountryCode = Match(CountryCode, 'US', 'CA') ;

Is this also ryt ?

nikhilgarg
Specialist II
Specialist II
Author

Hey,

I have used like:

Table1:

Load CityId,

Cityname,

CountryCode

from abc.qvd ;

Table2:

Load * resident Table1 where CountryCode = Match(CountryCode, 'US', 'CA') ;

Is this also ryt ?

nikhilgarg
Specialist II
Specialist II
Author

Hey,

I have used like:

Table1:

Load CityId,

Cityname,

CountryCode

from abc.qvd ;

Table2:

Load * resident Table1 where CountryCode = Match(CountryCode, 'US', 'CA') ;

Is this also ryt ?

qlikviewwizard
Master II
Master II

Hi,

Can you upload your file?

Thank you.