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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors