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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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