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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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 III
Helper III

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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