Hi @UiPathCommunity,
I want to compare two datatables and get distinct values based on multiple columns. Suppose i have DT1 with following data.
Name Date Of Birth Location Status
Mike 03/01/1991 Seattle Failed
Mary 01/09/1991 Seattle Failed
Pam 10/25/1998 Seattle Failed
and second dt2 with following data
Trailer No. Creation Date Ship To Status
Mike 03/01/1991 Seattle In Process
Mary 01/09/1991 Seattle In Process
Pam 10/25/1998 Seattle In Process
Lee 07/25/1998 Seattle In Process
Rick 07/25/1998 Seattle In Process
now the first three rows in dt2 are duplicate only the status is different. I want those three rows removed and get rows from dt1 with ‘failed’ status and new rows from dt2 into dt3.
I want to achieve this using for each row activity. I have attached the excel file as well.Book1.xlsx (8.3 KB) Book2.xlsx (9.1 KB)