This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi
I’m trying to set up Row Level Security on a report based on HR Data
And I am trying to do an org chart for the organisation.
The Way it works:
An employee has a position number, and that position number reports to another position number.
The issue is:
An employee can be acting in another position (Thus have two position numbers)
An Employee can be in two or more positions and thus have multiple positions.
A position can have multiple employees
A position with multiple employees can be job shared and thus position reports to only one position has two people split (e.g. one on Mon-Wed and the other Thu – Fri)
Users on leave (either Long Service, Annual, Merterniaty are technically in their position, but someone else would be acting)
With the above, another person might be acting in their position, or they are undertaking both positions/roles.
Has anyone come across this and worked out how this can be achieved as I have used the PATH and LOOKUPVALUE, but it gets stuck when there are multiple values in return, and it expects only one to be returned.
Eg
Path =
PATH (
'EmployeeInfo'[PositionNumber],
'EmployeeInfo'[ReportsTo]
)Level 1 =
LOOKUPVALUE (
'EmployeeInfo'[Employee_Name],
'EmployeeInfo'[PositionNumber], PATHITEM ( 'EmployeeInfo'[Path], 1, 0 )
)
When I get to level 3 is when I get multiple and I have a seven levels
Hi @amitchandak
Thanks for the response, and I have used the radacad code.
But that works on a one to one
A position number reports to one position number, but
I want to display the employee name as well which could be 2 or more employees.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 7 | |
| 6 | |
| 6 |