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: 
jim_chan
Specialist
Specialist

How to use WHERE in load statement?

Hi guys,

I want to filter this table with another condition ,  only show me  data from company_id which is 1,2,3,4,5. how should i put it in my where statement, as below:

table1:

load*

FROM

[..\QVD\BASE\FACT_table1_*.qvd] (qvd)

where (name <> 'Nick' and country <> 'Thailand' and company_id = '1,2,3,4,5');

It didnt work.

Rgds,

Jim

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Do you have a single company with ID 1,2,3,4,5, or are those different IDs for five different companies? If the latter:

where name <> 'Nick'

and country <> 'Thailand'

and match(company_id,'1','2','3','4','5');

View solution in original post

1 Reply
johnw
Champion III
Champion III

Do you have a single company with ID 1,2,3,4,5, or are those different IDs for five different companies? If the latter:

where name <> 'Nick'

and country <> 'Thailand'

and match(company_id,'1','2','3','4','5');