Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
Solved! Go to Solution.
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.
HI, I AM getting below error while using path function - please help
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |
User | Count |
---|---|
6 | |
5 | |
5 | |
3 | |
2 |