Forum Discussion

TGoodheart's avatar
TGoodheart
Frequent Visitor
9 years ago
Solved

Google Maps Distance Function Help

I'm trying to use a function that takes in a concatenated addresses, makes a google maps API call and returns the drive time/distance covered, I have had success with the formulas and can see the dat...
  • v-qiuyu-msft's avatar
    9 years ago

    Hi TGoodheart,

     

    From your description, it seems that you want to pass dynamic destinations to in URL to generate data. Please try to use the Web data source to call Google Maps API firstly follow this to see if the distance can return. Then follow those articles to create custom function and invoke it.

     

    Using The Invoke Custom Function Button In Power BI

    Custom Functions Made Easy in Power BI Desktop

     

     

    Besides, there are errors with three queries when you apply changes, I would suggest all those three queries one by one. By the way, please try to run the latest desktop version.

     

    Best Regards,
    Qiuyun Yu