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

Removing duplicate data from different tables

Hi guys.

I have two tables

Salesman 1

PIN

Sales_amount

‘Salesman1’ as Salesman

Salesman 2

PIN

Sales_amount

‘Salesman2’ as Salesman

There is a chance that someone might apply via more than one salesman. For example they go to Salesman2 to make their original application and then realise they have made a mistake and go to Salesman1 to apply again.

I’d like to identify anyone who appears in more than one table and remove them from the Salesman1 table. Can this be done?

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Salesman2:

Load PIN,Sales_amount,‘Salesman2’ as Salesman From Salesman2;

NoConcatenate

Salesman1:

Load PIN, Sales_amount, ‘Salesman1’ as Salesman From Salesman1 Where Not Exists(PIN);

View solution in original post

2 Replies
deepakqlikview_123
Specialist
Specialist

Can you please expalin what u want exactly.

f u want to just calcu8lation use distinct clause

eg for counting distinct records count( distinct value).

Thanks

anbu1984
Master III
Master III

Salesman2:

Load PIN,Sales_amount,‘Salesman2’ as Salesman From Salesman2;

NoConcatenate

Salesman1:

Load PIN, Sales_amount, ‘Salesman1’ as Salesman From Salesman1 Where Not Exists(PIN);