Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading a table if customer exists in another table

Hello,

how do I only load data into table Invoice for customers that exists in table Customer_Read.

The field cunumber exists in both tables. The code below gives an empty table Invoice:

Customer_Read:

Load

@1 as cunumber,

@2 as name

from customer.txt;

Invoice:

Load

@1 as cunumber;

.

.

from invoice.txt where exists(Customer_Read,cunumber);

kindly

Håkan

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi try below

Customer_Read:

Load

@1 as cunumber,

@2 as name

from customer.txt;

Invoice:

Load

@1 as cunumber;

.

.

from invoice.txt where exists(cunumber,@1);

Regards

ASHFAQ

View solution in original post

1 Reply
ashfaq_haseeb
Champion III
Champion III

Hi try below

Customer_Read:

Load

@1 as cunumber,

@2 as name

from customer.txt;

Invoice:

Load

@1 as cunumber;

.

.

from invoice.txt where exists(cunumber,@1);

Regards

ASHFAQ