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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.