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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.