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.
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
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)
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.
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
@Anonymous , The parent value should be there on the child side
https://docs.microsoft.com/en-us/dax/path-function-dax#remarks
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
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 |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |