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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.