Forum Discussion
Comparing Two Columns from different tables and list out un-matched records.
Hi Anonymous ,
With EXCEPT, you need to use the table name, not a selectedvalue from a table.
- Anonymous3 years agoNot applicable
Tried as you mentiones, but need to compare two columns in in different tables with EXCEPT.
Can you please eloborate with query for comapring two columns.Thanks,
Sareen
- v-yinliw-msft3 years ago
Community Support
Hi Anonymous ,
You can try this method:
New a table:
Table = UNION ( EXCEPT ( 'Table2', 'Table1' ), EXCEPT ( 'Table1', 'Table2' ) )The result is:
Result = FILTER('Table','Table'[Line Number] <> BLANK())Hope this helps you.
Here is my PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
Hi v-yinliw-msft ,
Thanks for your inputs. UNION and EXPECT are work, when both the tables having same number of columns. Coming to real scenario, I have two tables which don't have same numner of columns and they are in directly mapped with DIM table with common column. Can you please provide solution on this case like by creating variables. And in the output tables, only single column can see for missing line Number for a sing order with comapny.
Like:Company Order Result Column PBLG 319816 Missing Lines : 4, 5 Appriciate if can provide the solution.
Thanks,
Sareen