Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

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

    • Anonymous's avatar
      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

  • v-zhangti's avatar
    v-zhangti
    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)

    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.