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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dynamic RLS

Hi everyone,

I want to create dynamic row-level security. In my data table, I have 50 different employees divided into 10 teams. Each team has a team leader which can be seen in the job_title column. The report is only for the team leaders so they should only see data for their own team.

The data table contains name, team, job_title, and email

Can someone help me with this?

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

Hi @Anonymous ,

 

You could use USERNAME()/USERPRINCIPALNAME() function to implement dynamic row level security as described in the following similar blog.

https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use USERNAME()/USERPRINCIPALNAME() function to implement dynamic row level security as described in the following similar blog.

https://radacad.com/dynamic-row-level-security-with-power-bi-made-simple

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
d_gosbell
Super User
Super User

Reza over at Radacad.com has a number of articles on dynamic RLS. You could start by reading this one https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multipl...

amitchandak
Super User
Super User

Refer :https://community.powerbi.com/t5/Desktop/RLS-at-the-Team-Level-Data-Model-and-DAX/m-p/911797/highlig...

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

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

Hi @amitchandak 

It doesn't really make sense for me. Can you explain what I should do?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.