I am building a structural dimension in a data analysis software. This structure should reflect the Organizational Structure. The hierarchy is as follows:
- Business Unit
- Department
- Department
- Department (possibly more)
The departments are related in a parent/child-relationship. The data table has the following columns:
- Business Unit
- Business Unit (Label)
- Department
- Department Label
- Parent Department
- Parent Department Label
I just do not know how to set up this code to create the parent/child relationship while also grouping to the correct Business Unit.
I will also be using joins to link employees to the corresponding departments, which I would happily accept advice on how to do. Thanks :-)