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

Filter in script

Hi,

In my dataset, I have a large number of carriers, which I load in my script under the field name 'Carrier'. However, I am only interested in the data of two carriers, namely 'Malcolms' and 'Owens'. I know I can filter them out in my graphs with set analysis, but how can I already filter them out in my script?

Tags (2)
1 Solution

Accepted Solutions
datanibbler
Esteemed Contributor

Re: Filter in script

Hi Niek,

try using a WHERE clause:

LOAD

   ...

   ...

FROM ...

WHERE (carrier_name = 'Malcoms'

OR          carrier_name = 'Owens')

;

HTH

Best regards,

DataNibbler

3 Replies
datanibbler
Esteemed Contributor

Re: Filter in script

Hi Niek,

try using a WHERE clause:

LOAD

   ...

   ...

FROM ...

WHERE (carrier_name = 'Malcoms'

OR          carrier_name = 'Owens')

;

HTH

Best regards,

DataNibbler

Not applicable

Re: Filter in script

Yes, that worked. Thank you

Not applicable

Re: Filter in script

You can Try with Match function as we like below:

LOAD *

FROM SOURCE.qvd (qvd)

WHERE MATCH(Carrier ,'Malcoms','Owens') ;

Community Browser