Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Filter table based on another table

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?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Use the DAX below instead.

Table = CALCULATETABLE(Table1;EXCEPT(VALUES(Table1[ID]);VALUES(Table2[ID])))

1.JPG

Regards,

Lydia

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thanks alot! Works like a charm!

Anonymous
Not applicable

@Anonymous,

Use the DAX below instead.

Table = CALCULATETABLE(Table1;EXCEPT(VALUES(Table1[ID]);VALUES(Table2[ID])))

1.JPG

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

IDCostRevenue
1124
1235
1337
14511

 

Table B (discontinuation)

ID
11
12

 

Matrix on report:

 Before DiscAfter Disc
Total Cost138
Total Revenue2718

 

Any recommendations?  Thank you!!

What if I want to keep the values in table 2 and filter out the remaining values from table 1?

Anonymous
Not applicable

I believe you can use INTERSECT instead of EXCEPT

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.