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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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],"")

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@pbirookie , Try a new column

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

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors