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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dynamic RLS

Hello,

 

I need to implement Dynamic RLS.

I have two tables in my report like this 

User table and Reporting table. User table have fields like BU, Usename anf other userinformation. Reporting table have fields like BU, date and other reporting information.

 

I have join two table By BU using many to many relationship and cross filter direction-> Both

 

How to implement RLS here. so that specific user of that BU can see the BU level data from reporting table.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi@Anonymous ,

 

You can use Dynamic row level security in Power BI using DAX USERNAME() or UserPrincipalName() function.

However, you need to make sure that your Power BI model has a relationship set up properly. Otherwise, people might see other table’s data when there is no relationship between their profile table to those tables.

Dynamic row level security is highly dependent on your data model, so keep your data model right.

 

For more information,you can refer to this:

Dynamic-row-level-security-with-power-bi-made-simple  

 

You can also follow the tutorial below :Dynamic Row Level Security with Manager Level Access in Power BI 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi@Anonymous ,

 

You can use Dynamic row level security in Power BI using DAX USERNAME() or UserPrincipalName() function.

However, you need to make sure that your Power BI model has a relationship set up properly. Otherwise, people might see other table’s data when there is no relationship between their profile table to those tables.

Dynamic row level security is highly dependent on your data model, so keep your data model right.

 

For more information,you can refer to this:

Dynamic-row-level-security-with-power-bi-made-simple  

 

You can also follow the tutorial below :Dynamic Row Level Security with Manager Level Access in Power BI 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

 

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

@Anonymous , Have you already explored these two and they are not helping?

https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi
https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies

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
Anonymous
Not applicable

Hello @amitchandak ,

 

I have added simply the Dax on my User Table

[UserName] = UserName()

 

but its not working.

 

I need to filter the data using the specific BU if the person of that BU logins

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors