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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help needed in Exists function

Hi,

I have a table with two columns as below:

Table1:

DRG,

Wave

I have a second table with two columns FINALDRG, COST. The FINALDRG in the second table is same as the DRG in the first table.

So I have renamed the FINALDRG as DRG and the table looks like below:


Table2:

FINALDRG as DRG

COST

Now I have to load the table2 but with a condition. And the condition is, table2 should be loaded only with the DRGs which are loaded in table 1. How to do that? I tried using exists function but it is not working.

I have used the below script:

Table2:

Load * where exists(FINALDRG,DRG) but it is not working.

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

Load * where exists(DRG, FINALDRG);


The field to check comes first.

View solution in original post

4 Replies
Vegar
MVP
MVP

You have switched the parameters. Try

Table2:

Load * where exists(DRG, FINALDRG)

swuehl
MVP
MVP

Try

Load * where exists(DRG, FINALDRG);


The field to check comes first.

Anonymous
Not applicable
Author

Thanks Stefan, this worked

Anonymous
Not applicable
Author

Thanks Vegar. This worked