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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.