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

How to compare two tables

Hi,

Can anyone please help how to compare two table in qlik and only load not matching rows as shown in below table.

Table1:

Table1.PNG

Table2:

Table2.PNG

Desired Result:

Table3:

Table3.PNG

Thanks,

Ram Krishna

1 Solution

Accepted Solutions
ali_hijazi
Partner - Master II
Partner - Master II

you need to create a key in both tables:

in table1 Load A, B,C, A & '|' & B & '|' & C as Key1

in table2 NoConcatenate Load A,B,C, A & '|' & B & '|' & C as Key2

finally:

Table3:

noConcatenate

load A,B,C

resident table1 where not exists(Key2,Key1);

drop tables Table1, Table2

I can walk on water when it freezes

View solution in original post

1 Reply
ali_hijazi
Partner - Master II
Partner - Master II

you need to create a key in both tables:

in table1 Load A, B,C, A & '|' & B & '|' & C as Key1

in table2 NoConcatenate Load A,B,C, A & '|' & B & '|' & C as Key2

finally:

Table3:

noConcatenate

load A,B,C

resident table1 where not exists(Key2,Key1);

drop tables Table1, Table2

I can walk on water when it freezes