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've been trying to use the DAX PATH function as I have a project where I'll need to know the organization hierarchy for security purposes. Every time I use the PATH function I receive this error:
MdxScript(Model) (4, 48) Calculation error in measure 'AD Users with Managers'[Pathtest]: A table of multiple values was supplied where a single value was expected.
(The numeric values change depending on my dataset).
I've tried with my data pulled directly from AD with employee and manager IDs, with a dataset from RADCAD created specficialy to demonstrate how to use PATH, and by creating a table in Power BI using the data shown in the Microsoft Docs page about understanding parent/child functions in DAX: https://docs.microsoft.com/en-us/dax/understanding-functions-for-parent-child-hierarchies-in-dax
In all cases, I've made sure the child and parent ID fields are either integer or text, and that both have the same datatype. I've also made sure that the child ID does NOT have any duplicates. The parent ID does have duplicates, because a manager can have more than one employee.
Here is how I've written my PATH measure -
Solved! Go to Solution.
Hi @billjn ,
Please create a calculated column instead of measure with same formula just like below screen shot, it works well.
In addition, you can review the documentation for more details.
Parent and Child Functions -Hierarchies
Best Regards
Rena
Hi @billjn ,
Please create a calculated column instead of measure with same formula just like below screen shot, it works well.
In addition, you can review the documentation for more details.
Parent and Child Functions -Hierarchies
Best Regards
Rena
Thank you SO much! That did it - creating a column rather than a measure!!!
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 |
---|---|
76 | |
74 | |
57 | |
38 | |
33 |
User | Count |
---|---|
71 | |
65 | |
58 | |
50 | |
47 |