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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
viveksingh
Creator III
Creator III

Exclude data based on data

HI expert,

I have data in a table and I have to exclude the data from table 1 based on data that us provided in an excel.

example:

table1:

POLICY_NOCUSTOMER
123A
4567B
789C

excel was table consider to exclude

POLICY_NOCUSTOMERREMARKS
789CNOT INTRESTED
731DCLOSED
123ASUSPENDED
11 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

>>if i do residen load I have to use group by

Only if you have aggregate functions like sum/count/max...

If are just reloading to apply a filter, there is no need for a group by.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
arvind1494
Specialist
Specialist

TRY THIS:

TO_EXCLUDE:

LOAD POLICY_NO&'_'&CUSTOMER AS KEY,

POLICY_NO,

CUSTOMER,

REMARKS

FROM

[https://community.qlik.com/thread/316649]

(html, codepage is 1252, embedded labels, table is @2);

LOAD concat(chr(39)& KEY& chr(39),',') as EXCLUDE_RECORDS

RESIDENT TO_EXCLUDE;

Let vEXCLUDE = fieldvalue('EXCLUDE_RECORDS',1);

DROP Table TO_EXCLUDE;

DROP Field EXCLUDE_RECORDS;

MYRECORDS:

LOAD

POLICY_NO&'_'&CUSTOMER AS KEY,

POLICY_NO,

CUSTOMER

FROM

[https://community.qlik.com/thread/316649]

(html, codepage is 1252, embedded labels, table is @1)

Where NOT WildMatch(POLICY_NO&'_'&CUSTOMER,$(vEXCLUDE));