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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
VP_VishnuVS3
Helper I
Helper I

RLS code for dynamic hierarchical data

Hi,

We need to create a dynamic hierarchy RLS for a project. Which is having mutltiple Projects, their respective parent project id and users. When a user log in, the person need to see all the project assigned and the child projects. 

We have refered Radacad link https://radacad.com/dynamic-row-level-security-with-organizational-hierarchy-power-bi, but it is not working for our scenario because an user will be having multiple projects assigned. Could you please help. 

 

Please see the table of sample data and Expected result for user b is all the projects in the table and for user a is projects ids are 1, 3, 4 and 6

projectsidnameUserparentprojectPath
1Test Project 1a 1
1Test Project 1b 1
2Test Project 2b 2
3Test Project 3b22|3
3Test Project 3a22|3
4Test Project 4c32|3|4
5Test Project 5d22|5
6Test Project 6e32|3|6

 

3 REPLIES 3
jiaopengzi
Frequent Visitor

You can try the tool I developed: pbi utils to achieve.

 

jiaopengzi_1-1683456271550.png

 

Download link:https://github.com/jiaopengzi/pbi-utils


Hope it can help you.

Nice work. It would be better not to use the term "permissions" for page navigation. As you know there is no such thing as page level security.

lbendlin
Super User
Super User

use PATHCONTAINS for the users' projects.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.