Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I would like to filter numbers out based on if they exist in another table.
Example given.
Table 1 consist
ID Text Field
Table 2 consist
ID
I'd like to filter Table 1, removing all the rows where the number from Table 2 ID exist.
I've tried by making a new table with Column = EXCEPT(VALUES(Table1[ID]);VALUES(Table2[ID]))
Which gives me a new table that filters perfectly. however I need to keep my second column "Text Field".
Any ideas?
Solved! Go to Solution.
@Anonymous,
Use the DAX below instead.
Table = CALCULATETABLE(Table1;EXCEPT(VALUES(Table1[ID]);VALUES(Table2[ID])))
Regards,
Lydia
Thanks alot! Works like a charm!
@Anonymous,
Use the DAX below instead.
Table = CALCULATETABLE(Table1;EXCEPT(VALUES(Table1[ID]);VALUES(Table2[ID])))
Regards,
Lydia
@Anonymous I am trying to do something similar, but do not want to build another table. Instead, I want to calculate measures based on the filter that will be visualized on a matrix in a report. For example:
Table A
| ID | Cost | Revenue |
| 11 | 2 | 4 |
| 12 | 3 | 5 |
| 13 | 3 | 7 |
| 14 | 5 | 11 |
Table B (discontinuation)
| ID |
| 11 |
| 12 |
Matrix on report:
| Before Disc | After Disc | |
| Total Cost | 13 | 8 |
| Total Revenue | 27 | 18 |
Any recommendations? Thank you!!
What if I want to keep the values in table 2 and filter out the remaining values from table 1?
I believe you can use INTERSECT instead of EXCEPT
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 42 | |
| 40 | |
| 39 |