Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
kaushi2020
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
rubenmarin

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
rubenmarin

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 ...
kaushi2020
Creator III
Creator III
Author

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

rubenmarin

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

kaushi2020
Creator III
Creator III
Author

Thanks a lot for the solution. Much appreciated.