One of the challenges Power BI developers might have is how to handle Employee - Manager relations. Usually we store employee data in one table and some of those employees are managers to other employees in the same table... We call it recursive relationship.
So one employee can have only one manager and one manager can have multiple employees.
Let's take an example:
1. We have an 'Employee' table with Employee ID:

2. Then we have another ('EmpManager') table where we assign ID's creating this relation between an employee and another employee from the same table:

So looking at this example employee with ID = 2 is a supervisor to employees with ID's: 6,7,8,9
and then employee with ID = 6 is supervisor to employees with ID's: 15,16,17,18
We can see that there are multiple levels here.
How to handle this in Power BI and add a calculated column? Actually there is a very useful function called PATH. We can then create an Org chart in Power Bi with this PATH function In our case this would look like this in DAX:
EntityPath =
PATH ( EmpManager[Employee ID], EmpManager[Lvl1] )

And the result:
