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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Pk41
New Member

PATH() function error

I am trying to use the PATH function to get an organizational hierarchy for performing RLS
However, there are multiple "employee IDs" that are available in the "manager ID" column but not in the "employee I'd column" Because of this I cannot use the PATH function
Please provide any workaround for this
Thank you in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Pk41 ,

The PATH function requires a consistent link between the child ID and the parent ID to construct the hierarchy. If a Manager ID exists that does not have a corresponding Employee ID, the hierarchy path is broken, resulting in an error. The following is a concise plan of action to resolve this issue:

Create Placeholder Employee Records: For each unique Manager ID that does not have a corresponding Employee ID, create a Placeholder Employee Record. This ensures that each Manager ID can be linked back to the Employee ID, even if it is a dummy record. This method maintains the integrity of the hierarchy.

Handling Missing IDs with DAX: Implement DAX formulas to check for missing Employee IDs and replace them with placeholder IDs. this can be done using the ISBLANK function in DAX to check for and handle missing values.

Best Regards,

Xianda Tang

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

View solution in original post

2 REPLIES 2
anoomohan
Helper II
Helper II

HI, I AM getting below error while using path function - please help

 

anoomohan_0-1722620411105.png

 

Anonymous
Not applicable

Hi @Pk41 ,

The PATH function requires a consistent link between the child ID and the parent ID to construct the hierarchy. If a Manager ID exists that does not have a corresponding Employee ID, the hierarchy path is broken, resulting in an error. The following is a concise plan of action to resolve this issue:

Create Placeholder Employee Records: For each unique Manager ID that does not have a corresponding Employee ID, create a Placeholder Employee Record. This ensures that each Manager ID can be linked back to the Employee ID, even if it is a dummy record. This method maintains the integrity of the hierarchy.

Handling Missing IDs with DAX: Implement DAX formulas to check for missing Employee IDs and replace them with placeholder IDs. this can be done using the ISBLANK function in DAX to check for and handle missing values.

Best Regards,

Xianda Tang

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors