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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
somnath6309
Helper I
Helper I

How to filter a table column with the selection on Other Table Column

Hi,

In a tutorial we have seen the following report :

 

somnath6309_4-1736340262990.png

In the report if Customer Name e.g. Adams Blake is selected the matrix shows the Brands which were purchased by customer along with sales amount. However, in the second slicer we could not see the product names which were purchased by Adams. As we know that a filter from Customer easily reaches to Sales ( for one to many relationship) but from Sales the same is not propagated to Product because of Many to One relationship and following is the screen shot of data model:

 

somnath6309_5-1736340354592.png

In the tutorial we have seen that the relationship between Sales and Product was made Bidirectional and after that we achieved the desired report i.e. we can see the product names along with Brands when a specific customer is selected and following is the screen shot of the same:

 

somnath6309_6-1736340500864.png

 

 

However it is advised that the bidirectional relationship should not be activated for the entire data model as the same can create many complications and unexpected results.

 

Now the question is what will be the formula based solution to achieve the aforesaid situation where we can see Product names along with brands when a specific customer is selected. The same has not been told in tutorial but in practical scenario we can face such setuation and this will be very helpful for us if we get a code based solution of the same.

 

Regards, Somnath

3 REPLIES 3
Anonymous
Not applicable

Hi @somnath6309 ,
It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!
Looking forward to your reply!

mark_endicott
Super User
Super User

@somnath6309 - Add your Sales measure to the slicer on the filter pane in the "Filters on this visual" part, then change it to show items when the value "is not blank", see screenshot below:

 

mark_endicott_0-1736352567042.png

 

This passes any filter placed from any dimension table onto a fact table back to any other dimension. Because if Adams Blake has not bought a product, then the Sales measure will be blank for that product. This way you also do not need to create additional measures for each dimension. 

 

If this works for you, please accept as the solution as it helps users with the same challenge. 

johnt75
Super User
Super User

Create a measure

Product is visible =
IF (
    SELECTEDVALUE ( 'Product'[Product Name] )
        IN SUMMARIZE ( Sales, 'Product'[Product Name] ),
    1
)

and add that as a filter to the slicer, to show only when the value is 1.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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