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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Jyothishree
Helper II
Helper II

Filter applied on a Table is not taking effect on another table with relationship 'Many to One'

Hello, We Filtered out some ShopIDs from Shops Table (Screenshot)   as it is has stopped working from few months, say ID 4 and 5. We have got  several measures in the dataset for Employee count and many different criteria reporting of Employees and Administrators. Recently we could see that the ID’s filtered out in Shops Table is not taken effect in Employees Table and as the measures are just counting the Total number of Emplyoyees(Same rule is implemented in many measures), it counts the Employees from the Shop Id which is filtered as well. The Relationship between Employees Table to Shops Table is Many to One (Join on ShopID) and the crossfilter direction was single. I tried making it ‘Both’ but still the filter doesn’t apply on ‘Employees Table’. I am not able to use ‘Apply security filter in both directions as this warning pops up. Is there any simple way to achieve any filter changes applied on Shops Table  must take effect on ‘Employees Table as well, means those ID’s should get filtered out automatically from ‘Employees Table’. I understand adding a table in between with ShopID column and connecting the Id columns from bot table to this table would certainly solve the issue but as I mentioned it isa huge dataset and we have very less time to analyse the impact.

Jyothishree_0-1715209085459.png

 

Jyothishree_1-1715209271390.png


Any help is appreciated.

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Jyothishree ,

 

 

As far as I know, using bridged tables is the quickest way to encounter this situation

If there are multiple relationships between these tables and the active table doesn't allow the filter to propagate as desired, you might consider using the Related() or Userelationship() functions.

RELATED function (DAX) - DAX | Microsoft Learn

USERELATIONSHIP function (DAX) - DAX | Microsoft Learn

 

Ensure that the relationship between the Shop table and the Employee table is set up correctly to allow filtering as expected. Sometimes the presence of inactive relationships or complex model structures can prevent the expected filter propagation.

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

This is the related document, you can view this content:

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-bidirectional-filtering

https://community.fabric.microsoft.com/t5/Desktop/Row-Level-Security-Error/td-p/2249910

https://community.fabric.microsoft.com/t5/Desktop/Row-Level-Security-Unable-to-add-roles-because-of-...

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Jyothishree ,

 

 

As far as I know, using bridged tables is the quickest way to encounter this situation

If there are multiple relationships between these tables and the active table doesn't allow the filter to propagate as desired, you might consider using the Related() or Userelationship() functions.

RELATED function (DAX) - DAX | Microsoft Learn

USERELATIONSHIP function (DAX) - DAX | Microsoft Learn

 

Ensure that the relationship between the Shop table and the Employee table is set up correctly to allow filtering as expected. Sometimes the presence of inactive relationships or complex model structures can prevent the expected filter propagation.

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

This is the related document, you can view this content:

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-bidirectional-filtering

https://community.fabric.microsoft.com/t5/Desktop/Row-Level-Security-Error/td-p/2249910

https://community.fabric.microsoft.com/t5/Desktop/Row-Level-Security-Unable-to-add-roles-because-of-...

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.