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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sir_Than
Contributor
Contributor

Exclude values

I have a table called Temp with many columns, and a column called ID. In the load statement of this table, there is a ''where not match'' clause that excludes many values from the field ID.

I also have an excel file with only a column called ID.

I want to keep the Temp table and replace the ''where not match'' clause with a snippet of code that will exclude the values that are the same in the excel file and in the Temp table.

Can you help me on this?

Labels (1)
2 Replies
BrunPierre
Partner - Master II
Partner - Master II

Hi, one solution could be as below.

ExcludingIDs:
LOAD ID

FROM [Excel File];

Temp:
LOAD ID,
<Other fields>

FROM <Table>.db
Where not Exists(ID);

DROP Table ExcludingIDs;

EXIT SCRIPT;

MarcoWedel

Load ID as ExcludeID from your Excel and restrict your Temp table load with "Where not Exists(ExcludeID, ID)".