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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filter a table by another table

Hi

 

I have Reporting Table that containes Customer IDs and a Customer Table that also contains Customer IDs.

I want to filter my  Reporting Table to only show the Customers that exist in the Customer Table.

Can you please help???

1 ACCEPTED SOLUTION

It should be possible to pull the Customer ID field from the Customer table onto a visualisation and then add anything from the report table.  This will only show records from customers that exist in both.

A DAX way to find a list would be something like

Table = FILTER(VALUES(Reporting[CustomerID]), CALCULATE(COUNTROWS(Customer) > 0))

This is a bit like an EXISTS query in SQL

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

Do you have a relationship linking the 2 tables on customer id?

Anonymous
Not applicable

Yes a many to many relationship

It should be possible to pull the Customer ID field from the Customer table onto a visualisation and then add anything from the report table.  This will only show records from customers that exist in both.

A DAX way to find a list would be something like

Table = FILTER(VALUES(Reporting[CustomerID]), CALCULATE(COUNTROWS(Customer) > 0))

This is a bit like an EXISTS query in SQL

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.