Forum Discussion
Comparing 2 tables that have 2 columns each and return difference
- 9 years ago
Hi
Add in each table anID column with the concatenation of the two columns:
IDTABLE1 = Table1[A] & Table1[B]
IDTABLE2 = Table2[A] & Table2[B]
Then use the same formula as I said but replace the A column by the ID columns.
Valid = IF(
Table1[IDTABLE1] = LOOKUPVALUE (Table2[IDTABLE2], Table2[IDTABLE1], Table1[IDTABLE1]),
"OK",
" NOT OK"
)
Regards
Mfelix - 9 years ago
Hi ShawnTRizzle,
You can add to your table a filter and select the OK / NOT OK, or you can try to do 2 new tables with the following formula:
OK_Table = CALCULATETABLE(Table1,Table1[Valid]="OK") NOT_OK_Table = CALCULATETABLE(Table1,Table1[Valid]="NOT OK")
Regards,
MFelx
Hi ShawnTRizzle,
Create a new table to list all those unmatched rows using below formula:
New Table = EXCEPT(TABLE2,TABLE1)
Regards,
Yuliana Gu
Quick question, how do you do the reverse and pull back the OK ones?
- MFelix9 years ago
Super User
Hi ShawnTRizzle,
Not sure.whst you mean do the reverse I gave you two.formulas one gives yous the ok other the not ok you will get two tables.
Regards
MFelix- ShawnTRizzle9 years agoRegular Visitor
Sorry, that question was for someone else. Your formulas worked perfectly. Thanks again!