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

Join 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.

Reply
Anonymous
Not applicable

DAX PATH function Error

hello team, 

 

1. i have below sample data in csv which is used to create sankey chart in PowerBI

 

2. Now I want to create a new column to find the parent node for each target node. I want to use DAX  PATH function to achieve this, but I got an error. " The value 'open_list_view_1' in 'test'[source] must also exist in 'test'[target]. Please add the missing data and try again."  

 

 

 

 

 

 

Thanks,

Cherie

 

 

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Looking for the parent node, what is the output you expect? Based on the limitations of the PATH function, your source data format does not quite meet the requirements of the formula.

 

If you want to see if [target] appears in [source], you can try the following.

Column = IF([target] in VALUES('Table'[source]),1,0)

vzhangti_0-1663061945446.png

If this doesn't solve your problem, please let us know what you were expecting.

 

Best Regards,

Community Support Team _Charlotte

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

Anonymous
Not applicable

Hi @v-zhangti,

 

Thanks for the reply. My goal is that I can filter the whole sankey chian when filtering by sankey and chart. Right now, the powerBI only returns the selected source node and its target node when applying source and target filter.  So I am trying to find a workaround and I found this solution which says PATH and PATHCONTAINS DAX functions will help. https://community.powerbi.com/t5/Desktop/Filter-for-entire-quot-chain-quot-in-network-sankey-chart-n... . But when I tried, I meet the issue described in this ticket.

 

how can i achieve?

 

Thanks,

Cherie

 

amitchandak
Super User
Super User

@Anonymous , The parent value should be there on the child side

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

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

Hi @amitchandak ,

 do you mean that switch the two paramters of PATH function. I tried with below, and still failed.

Column = PATH(test[source], test[target])

 

Thanks,

Cherie

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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