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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Sebski
Regular Visitor

PATH - DAX Measure - A table of multiple values was supplied where a single value was expected

Hi,

 

I am a stuck trying to create a new measure using PATH.

I have the following data, one column has the CostCenterID, the next the CostCenterID of the Parent.

I want to create a new measure that will display the path of the CostCenter like this:

 

Name Parent Path

501 501
501-01501501|501-01
501-01-01501-01501|501-01|501-01-01
501-01-01-01501-01-01501|501-01|501-01-01|501-01-01-01
501-01-01-02501-01-01501|501-01|501-01-01|501-01-01-02
501-01-01-03501-01-01501|501-01|501-01-01|501-01-01-03
501-01-01-04501-01-01501|501-01|501-01-01|501-01-01-04

 

No matter what I do I get the error:

Couldn't load the visual data for this visual

Calculation error in measure. A table of multiple values was supplied where a single value was expected.

 

Thanks for you help

1 ACCEPTED SOLUTION

I created it as a new column instead of a measure and it worked. Power bi document does not say it needs to be created a column specifically but before example, the text says "The following example creates a calculated column that lists all the managers for each employee."

 

Refer

https://docs.microsoft.com/en-us/dax/path-function-dax

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

 If possible please share a sample pbix file after removing sensitive information.
Thanks

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

no problem here are the links to the pbix and sample data

 

Data

pbix  

 

Seb

I created it as a new column instead of a measure and it worked. Power bi document does not say it needs to be created a column specifically but before example, the text says "The following example creates a calculated column that lists all the managers for each employee."

 

Refer

https://docs.microsoft.com/en-us/dax/path-function-dax

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Kudoed Authors