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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
rushi94
New Member

Setting up Dynamic RLS

Hi All,

I want to set up dynamic RLS in my report.Following is the structure

Fact table has site id column.I have user directory table which contains user emails alongwith site ids,some user ids have multiple site ids assigned to it.When I directly connect this active directory table to fact relationship becomes many to many.Hence I tried to create a bridge table of only one site id column with unique site ids but RLS is not getting implemented using bridge table.Could you please help if I am doing anything wrong?

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

Hi @rushi94 ,

By my test, many to many relationship doesn't affect the effectiveness of dynamic RLS, you don't need to create a new bridge table, here's my steps.

Fact table:

vkalyjmsft_0-1661843601791.png

user directory table:

vkalyjmsft_1-1661843635948.png

The two tables are related with the Site ID column.

vkalyjmsft_2-1661843693262.png

Add a DAX filter in the Manage roles pane.

[User email] = USERNAME()

vkalyjmsft_3-1661843754424.png

Now, I select View as to test the RLS, select New role and Other user at the same time and enter a email in the Other user option.

vkalyjmsft_4-1661844007283.png

Return the correct result.

vkalyjmsft_6-1661844144585.png

vkalyjmsft_5-1661844127549.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @rushi94 ,

By my test, many to many relationship doesn't affect the effectiveness of dynamic RLS, you don't need to create a new bridge table, here's my steps.

Fact table:

vkalyjmsft_0-1661843601791.png

user directory table:

vkalyjmsft_1-1661843635948.png

The two tables are related with the Site ID column.

vkalyjmsft_2-1661843693262.png

Add a DAX filter in the Manage roles pane.

[User email] = USERNAME()

vkalyjmsft_3-1661843754424.png

Now, I select View as to test the RLS, select New role and Other user at the same time and enter a email in the Other user option.

vkalyjmsft_4-1661844007283.png

Return the correct result.

vkalyjmsft_6-1661844144585.png

vkalyjmsft_5-1661844127549.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

amitchandak
Super User
Super User

@rushi94 , This need to be many to many, you can filter from secure table to site table. if this bi-directional then you need, check the bi-directional security filter flag too

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.