So, I have a list exported from a system containing unique employee ids (children). Each of these rows has the employee’s manager unique id (parent). One of the employees is the CEO and is to be considered level = 1
I would like a way to calculate per employee what level they are on in the organization. Is this possible in an effective way?
Have tried a solution I found before based on MATCH and INDEX, but it is cumbersome and seems to consume enormous resources to calculate and recalculated all the time.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Unique child id[/TD]
[TD]Unique parent id[/TD]
[TD]level[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]88[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]99[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]44[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]55[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]
I would like a way to calculate per employee what level they are on in the organization. Is this possible in an effective way?
Have tried a solution I found before based on MATCH and INDEX, but it is cumbersome and seems to consume enormous resources to calculate and recalculated all the time.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Unique child id[/TD]
[TD]Unique parent id[/TD]
[TD]level[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]88[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]99[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]44[/TD]
[TD]?[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]55[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]