Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DataNinja777
Super User
Super User

Using Path function in employee change table

Hello,

 

I'd like to use the path function to identify the name of the manager of an employee in the employee table.  It seems that path fuction only works when employee table is used as dimention table (one employee appear only once) and not in employee change table where an employee appears multiple times for the change in departments and roles. Please could you let me know how I can utilize path function in conjunction with the employee change table where employee appear more than once for changes in departments and roles during their tenure?  

 

DataNinja777_0-1707040715716.png

 

3 REPLIES 3
Daniel29195
Super User
Super User

@DataNinja777 

 

pathfunctions in DAX works when you have a child having 1 and only one parent . 

 

they can't handle child that has mutliple parents

 

this means : 

child      parent

4                2

3                2

2               1

1              

the above logic will work 

 

however : 

child      parent

4                2

3                2

3                1 

2                1

1              

wont work .

 

 

 

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Thank you @Daniel29195 for a clear concise explanation.  It is basically like no many-to-many relationship is allowed.   Is this an appropriate analogy?  The thing is, in real life, employees' managers change over time period and I am trying to visualize this fact using Power BI over time dimension.  I am thinking of experimenting by concatenating with change effective date field to correctly link the manager path of employees according to the time dimension.  If you have any other method to achieve this, please let me know.  

Thank you. 

@DataNinja777 

concatenating with effective date is a good idea . 

 

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.