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
YuanQingTan
New Member

Understanding RLS Security Filter in Both Directions

I wasn't able to find any clear explanation on how the security filter in both directions work.

 

After reading on the web, I did my own testing with the materials from MS Learn Power BI Lab and had a better understanding of why is this option helpful.

 

Heres what I found

Try to modify the file from lab 10: 10-Solution-Sales Analysis.pbix as per the screenshot below.

Only the tables shown is important and only the relationships highlighted yellow are important. 
The other tables can be hidden.

YuanQingTan_0-1725335175172.png

 

The existing RLS is applied to the Salesperson Performance Table on the UPN.

Referring to the screenshots below

In the first box, the role is set to none, the two matrix visuals show all the sales by region and salesperson in different order.

We can see that StephenJiang has 6 Regions.

 

In the second box, the "security filter in both direction" is DISABLED for the relationship between Region and SalespersonRegion (marked with Δ in the screenshot above).

Role is set to StephenJiang

From this we can see that the sales for other regions are also shown if the [Region] comes before [Salesperson] in the visual.
If the order is reversed, we only see the regions for StephenJiang

 

In the third box, the "security filter in both direction" is ENABLED.

From this we can see that only the sales of regions corresponding to StephenJiang is shown regardless of whether [Salesperson] or [Region] comes first in the visual.

YuanQingTan_1-1725335386928.png

 

 

 

1 ACCEPTED SOLUTION
suparnababu8
Super User
Super User
1 REPLY 1
suparnababu8
Super User
Super User

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.