Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Compare 2 columns & display unique values

Hi,

I have a file with 2 non-identical columns: A & B. Each entry in Column A has an entry somewhere in Column B. I want to display a list of entries that will compare all the entries in A with those in B and only display those that are missing from B.

In Excel this works:

=IF(COUNTIF(B:B,A2)=0,A2,"")

I have attached a sheet containing some dummy data and  the excel formula working correctly.

Any help would be greatly appreciated...

Thanks

A

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi A,

Try this in your script:

Data:

LOAD [Column A],

     [Column B],

     If (ISNULL([Column B]) , [Column A]) as [Column C]

FROM

[..\QV Missing IDs.xls]

(biff, embedded labels);

Good luck,

Dennis.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi A,

Try this in your script:

Data:

LOAD [Column A],

     [Column B],

     If (ISNULL([Column B]) , [Column A]) as [Column C]

FROM

[..\QV Missing IDs.xls]

(biff, embedded labels);

Good luck,

Dennis.

Not applicable
Author

Hi Dennis,

That works perfectly, thanks.

Alan

Not applicable
Author

Hi Dennis,

How would I do this if the two fields that I want to compare are in two different tables?

Thanks

Alan

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use Exists(FieldName) in the Where clause.

     Field name should be common in both the table.

Hope it helps

Celambarasan

Not applicable
Author

Hi Celambarasan,

Thanks very much for your prompt response.

Would you mind specifying how this would be incorporated into the script?

I am very new to Qlikview...

Cheers

Alan