cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Dynamic row level security spread across multiple columns

I've a table as under:

Employee NameManager Lvl1Manager Lvl2Manager Lvl3SALES
ALYZ1
BMYZ2
CLYZ3
DMYZ1
ENYZ3
FNYZ2
GOYZ5

 

I was able to create a relationship map using the script from here:

https://stackoverflow.com/questions/64202169/creating-an-employee-manager-relationship-table?noredir...

So the relationship table looks like as under: (employee table)

https://i.stack.imgur.com/X3ONs.png 

My main concern is how do I let any Employee or Any manager from any level view the sheet with only the SALES that pertains to them

I tried using the query :


PATHCONTAINS(employee[Merged],Maxx(Filter(employee, Column1 = USERPRINCIPALNAME()), employee[Index]))

But it throws the following error:

The syntax for [Merged] is incorrect

 

Would really appreciate if you could let me how do I fix it and also how do I add all the Employee's and Managers to their Roles

 

Thanks



 

1 REPLY 1
Super User IV
Super User IV

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors