Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Kaushik2020
Creator III
Creator III

Matching column with multiple columns and show matched/not matched

Dear All,

I have Table1 with InvoiceId, which I have to match with Id, TransId and PaymentId respectively in Table2. If InvoiceId from Table1 match with any one of these 3 columns, then show status as Matched. Else show not matched in a table. Please suggest. 

1 Solution

Accepted Solutions
rubenmarin1

Hi, after you have table2 loaded, you can load InvoiceId and use Exists() to check is the value is loaded.

LOAD
  InvoiceId,
  If(Exists('Id',InvoiceId) or Exists('TransId',InvoiceId) or Exists('PaymentId',InvoiceId),' Matched' as Status
From/Resident ...

View solution in original post

4 Replies
rubenmarin1

Hi, after you have table2 loaded, you can load InvoiceId and use Exists() to check is the value is loaded.

LOAD
  InvoiceId,
  If(Exists('Id',InvoiceId) or Exists('TransId',InvoiceId) or Exists('PaymentId',InvoiceId),' Matched' as Status
From/Resident ...
Kaushik2020
Creator III
Creator III
Author

Thanks for the reply, the resident load should be from table1 or table 2 ? 

rubenmarin1

Hi, it should be the table where InvoiceId is, so from table1.

Kaushik2020
Creator III
Creator III
Author

Thanks a lot for the solution. Much appreciated.