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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

remove contracts comparing two files

Hi, everyone

I have two files, "File1" and "File2"

File1:

Contains all contracts

File2:

Contains all contracts that should be excluded


it is possible to remove the contracts in the script?



Example:

All contracts

tab1:

LOAD * Inline [

CONTRACT

1

2

3

4

5

6

7

8

9

10

];

contracts that should be excluded

tab2:

LOAD * Inline [

CONTRACT

1

2

3

4

5

];

Thanks!!

duvidaqlikv.PNG

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

May be this

tab2:

LOAD * Inline [

CONTRACT

1

2

3

4

5

];

tab1:

LOAD * Inline [

CONTRACT

1

2

3

4

5

6

7

8

9

10

] Where not Exists(CONTRACT);

its_anandrjs
Champion III
Champion III

Use Where exists.

Anil_Babu_Samineni
MVP
MVP

Where Not Exists(CONTRACT) will achieve

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
its_anandrjs
Champion III
Champion III

Do this way based on your table structure

tab2:

LOAD CONTRACT as Exc_CONTRACT;

LOAD * Inline [

CONTRACT

1

2

3

4

5

];

tab1:

LOAD * Inline [

CONTRACT

1

2

3

4

5

6

7

8

9

10

]Where not Exists(Exc_CONTRACT,CONTRACT);

DROP Table tab2;

Find attached