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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
pbirookie
Frequent Visitor

Remove first level from PATH

Hello,

 

I`ve created a report using the PATH function in order to enable RLS viewing options.

What I don`t like is that it`s listing the current user in the hierarchy and I need the logged in user to only be able to see data about employees reporting to them.

Any suggestions?

Adding a sample of my data below and the desired result.

pbirookie_0-1616156642020.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@pbirookie , Try a new column

New column = substitute([path],"|"&[ID],"")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@pbirookie , Try a new column

New column = substitute([path],"|"&[ID],"")

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for this simple and great suggestion, @amitchandak !

It works great for this column.

Still, when I`m using the userprincipalname () function to view as one of my users, I can still see their own names listed. 

Can you please advise how I can solve this?

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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