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: 
PoojaNarke
Contributor
Contributor

How to compare 2 or more qvd files with same data?

Hi Qlik Community,

I am relatively new to Qlik and was looking for some hep with comparing data of two or more qvd files with same fields and same data.

I want to have some flag which shows the un-matching values/records as an output of the comparison.

Labels (1)
2 Replies
Miguel_Angel_Baeyens

Nocto
Contributor III
Contributor III

Try Somenthing like that: the &'|' & is to generate a composite key or lets say a unique key which chains all Field together:

QUALIFY*;
[Table1]:
LOAD [Field1] &'|' &
[Field2]&'|' &
[Field3]&'|' &
as Key1
FROM Source1;

[Table2]:
NoConcatenate
LOAD [Field1] &'|' &
[Field2]&'|' &
[Field3]&'|' &
as Key2
FROM Source2;

[CheckData]:
NoConcatenate
LOAD *,
if(Exists([Table1.Key1],[Table2.Key2]), 'Yes','No') as DataCheck
resident [Table2];