Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

not exists?


Hi,

i have 2 xl sheets loaded

like

t1:

load field1

field2

from xl1;

t2:

load field1

field2

from xl2;

now i want find out unmatched data between these two  ?

i have used where not exists(f1) but it is giving table 2 data also with unmatched data

here my req is i want see only unmatced data between 2 xl sheets ?

5 Replies
MK_QSL
MVP
MVP

t1:

load field1

field2,

field1&'|'&field2 as key1

from xl1;

t2:

load field1

field2

from xl2

where not exists(key1,field1&'|'&field2);

Drop Field key1;

ali_hijazi
Partner - Master II
Partner - Master II

you need to have different field names in the 2 tables

or use no concatenate

as follows:

t1:

load f1, f2 from x1

t2:

noconatenate

load f1,f2 from x2

now you can use the not exits

or

t1:

load f1, f2 from x1

t2:

load f1 as F1,f2 as F2 from x2

t3:

noconcatenate

load * resident t2

where not exists(f1,F1)

but make sure to delete t1 to avoid auto concatenate by QlikView

I can walk on water when it freezes
Anonymous
Not applicable
Author

Not worked

ali_hijazi
Partner - Master II
Partner - Master II

may you please send me sample excel sheets and I will send you the appropriate qv script?

I can walk on water when it freezes
Anonymous
Not applicable
Author

No need yar i got it