cancel
Showing results for 
Search instead for 
Did you mean: 
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 IV
Super User IV

@pbirookie , Try a new column

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@pbirookie , Try a new column

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors