Forum Discussion
Employee Manager Hierarchy
Hi,
I have a dataset like below where I have ManagerHeirarchy of an employee representing his line-reporting:
I have managed a list of Managers (who appear in the column DirectManager).
I want to have this list as a Selection.
When I select a value from this Selection, I want the report to filter for his Reporting Hierarchy.
If I select 202 from the Selection, EmployeeIDs selected will be 202 (employee himself) and 101 (his reporting hierarchy).
If I select 504: 103, 202, 504 will be selected.
Can anyone please guide me to the most efficient process to achieve this.
I am happy to change the data format if required, e.g. putting the mgr hierarchy in seperate column like Mgr1, Mgr2, Mgr3.
Thanks.
- Anonymous4 years ago
The right method is to flatten the input table using PATH() and PATHITEM() kind of functions. You can refer to the following article https://www.daxpatterns.com/parent-child-hierarchies/
1 Reply
- AnonymousNot applicable
The right method is to flatten the input table using PATH() and PATHITEM() kind of functions. You can refer to the following article https://www.daxpatterns.com/parent-child-hierarchies/