Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a 2 tables, both has the same column names col1, col2. Table1 has more data (1000) and Table2 has subset of Table1 (300). I am trying to get the rows into another table which are exists only in Table1. I only want the difference, But I always get entire Table1 or Table2.
let
Source1 = Table1,
Source2 = Table2,
DistinctTable1 = Table.Distinct(Table.SelectColumns(Source1, {"col1", "col2"})),
DistinctTable2 = Table.Distinct(Table.SelectColumns(Source2, {"col1", "col2"})),
Difference = Table.RemoveMatchingRows(DistinctTable1, Table.ToRecords(DistinctTable2), {"col1", "col2"})
in
Difference
What is the mistake I am doing?
Solved! Go to Solution.
Merge the tables and use an Anti-join. It's all done in the Merge dialog
Merge the tables and use an Anti-join. It's all done in the Merge dialog
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
7 | |
6 | |
5 |