Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load a table field where value appears in a previous table

Hi

Every product has a supplier.  In my model, I have loaded a limited number of products based on some criteria.

I have a list of supplier names that I want to load into my model.  Currently I am getting a complete list even though some of them do not have a product (as it was already filtered out).

How can I filter them so I only get suppliers that have a product in the model?

Can I do a where clause based on a previous table...

Thanks

Oli

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Yes, a where exists clause should do the job.

Products:

load productid, supplierid

from ...productsource...;

Suppliers:

load supplierid, suppliername

from ...suppliersource...

where exists(supplierid);


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Yes, a where exists clause should do the job.

Products:

load productid, supplierid

from ...productsource...;

Suppliers:

load supplierid, suppliername

from ...suppliersource...

where exists(supplierid);


talk is cheap, supply exceeds demand
Not applicable
Author

Hi

Simple when you know how

Thanks