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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
tarunbisht20001
Frequent Visitor

Need help with setting up Dynamic RLS on Hierarchy Data

I have a table RLS
it have two columns
email and project ID

now i have setup a role on table RLS as
[Email] = USERPRINCIPALNAME()


now i have a project table which is the main table in schema which contains all data
in Project i have two main columns
ID and Parent ID

ID contain project id and parent column contain id of parent project of particular project if exist, if any project is superparent than empty

now I have created a superparent column using path and few dax function

like
ParPath = PATH(PROJECTS[id],PROJECTS[parent_id])

SUPERPARENT = LEFT(
PROJECTS[ParPath],
SEARCH(
"|",
PROJECTS[ParPath],
,
LEN(PROJECTS[ParPath]) + 1
) - 1
)

I have a relationship between the RLS table and the Project table, linking Project ID to a custom Superparent column. However, this setup restricts access to projects that are not designated as Superparents.

When I updated the relationship between the RLS table and the Project table to link Project ID to Project ID, the filters stopped working, and nothing is being filtered.

Please suggest solutions and explain how I can verify and test the filtering process.

4 REPLIES 4
Anonymous
Not applicable

Hi @tarunbisht20001 ,

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster?

 

If that doesn't solve the problem, could you please provide the relevant .pbix file or a link to it?

 

 

Best Regards

Yilong Zhou

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

PijushRoy
Super User
Super User

Hi @tarunbisht20001 

Please follow the video step by step video https://www.youtube.com/watch?v=61fUUciDnks 
Example which I did a few months back

PijushRoy_0-1733216637056.png

Then created Role

PijushRoy_1-1733216689787.png

 

Go to Report security in Power BI service and assign users email ID or Users Group
Please let me know if not solved

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Hi @PijushRoy,

In my case i cant keep path column in the same table where user data exist(User Email).

What is the reason @tarunbisht20001 
Please create and share sample PBIX file Google Drive link




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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