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 moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I am creating a vertical org chart and when I get to a director who has direct reports from various job levels, I want to have a decomposition tree with managers only on one row, supervisors only on one row and staff only on one row but have them all connected to the director. Right now, I am getting a manager and supervisor on the same row and that's not how I want the org chart. I created a manager ID to connect people to their supervisor, but can I perhaps create a more dynamic manager ID so that if it's a certain job level, they are on a specific level?
Solved! Go to Solution.
hi @DMB90
FullPath = PATH ( 'Employee'[EmployeeID], 'Employee'[ManagerID] )
Level1_Director =
LOOKUPVALUE(
'Employee'[Name],
'Employee'[EmployeeID],
PATHITEM ( 'Employee'[FullPath], 1, INTEGER )
)
Level2_Manager =
LOOKUPVALUE(
'Employee'[Name],
'Employee'[EmployeeID],
PATHITEM ( 'Employee'[FullPath], 2, INTEGER )
)
Level3_Supervisor =
LOOKUPVALUE(
'Employee'[Name],
'Employee'[EmployeeID],
PATHITEM ( 'Employee'[FullPath], 3, INTEGER )
)NodeDepth = PATHLENGTH ( 'Employee'[FullPath] )
BrowseDepth = ISINSCOPE ( 'Employee'[Level1_Director] ) + ISINSCOPE ( 'Employee'[Level2_Manager] ) + ISINSCOPE ( 'Employee'[Level3_Supervisor] )
Org Chart Headcount =
IF (
MAX ( 'Employee'[NodeDepth] ) < [BrowseDepth],
BLANK (),
// Replace with whatever measure you are using for the visual's values
COUNTROWS('Employee')
)By placing your newly created Level1, Level2, and Level3 columns into the decomposition tree in strict order, you force the visual to adhere to your specific levels rather than the raw distance from the Director.
If this solution solve your problem or able to point you out to use in your case. Plese mark this a solved.
hi @DMB90
FullPath = PATH ( 'Employee'[EmployeeID], 'Employee'[ManagerID] )
Level1_Director =
LOOKUPVALUE(
'Employee'[Name],
'Employee'[EmployeeID],
PATHITEM ( 'Employee'[FullPath], 1, INTEGER )
)
Level2_Manager =
LOOKUPVALUE(
'Employee'[Name],
'Employee'[EmployeeID],
PATHITEM ( 'Employee'[FullPath], 2, INTEGER )
)
Level3_Supervisor =
LOOKUPVALUE(
'Employee'[Name],
'Employee'[EmployeeID],
PATHITEM ( 'Employee'[FullPath], 3, INTEGER )
)NodeDepth = PATHLENGTH ( 'Employee'[FullPath] )
BrowseDepth = ISINSCOPE ( 'Employee'[Level1_Director] ) + ISINSCOPE ( 'Employee'[Level2_Manager] ) + ISINSCOPE ( 'Employee'[Level3_Supervisor] )
Org Chart Headcount =
IF (
MAX ( 'Employee'[NodeDepth] ) < [BrowseDepth],
BLANK (),
// Replace with whatever measure you are using for the visual's values
COUNTROWS('Employee')
)By placing your newly created Level1, Level2, and Level3 columns into the decomposition tree in strict order, you force the visual to adhere to your specific levels rather than the raw distance from the Director.
If this solution solve your problem or able to point you out to use in your case. Plese mark this a solved.
So the supervisors are not actually marked as such in your HR hierarchy, and instead are on the same level as employees or managers?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |