Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Correcting Errors in PATH

Hello All,      I am using the PATH statement to create a 'chain of command'.   PATH = PATH(Results[Full Name],Results[Reports to])   Due to the volume of employees and turn over; there are a...
  • v-jingzhang's avatar
    v-jingzhang
    5 years ago

    Hi Anonymous , I suggest adding a column and replace the names that don't appear in Full Name column with your CEO's name. Then use this column in your PATH statement instead of the original Reports to column.

     

    Example:

    Reports to (Backup) = LOOKUPVALUE('Employees'[Full Name],'Employees'[Full Name],'Employees'[Reports to],"Tomas")
    
    Path = PATH('Employees'[Full Name],'Employees'[Reports to (Backup)])

    Best Regards,

    Community Support Team _ Jing Zhang

    If this post helps, please consider Accept it as the solution to help other members find it.