Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all
I am trying to get the distance from each employees home address to their place of work. For home address, it is broken into 6 columns, including post code, street address, town/city etc. The work address is simply a single column name of work location.
I am trying to use bing to calculate the latitude and longitude of each address for each person. Thus, I will have a a column for latitude and longitude for home address and work address, and use another method to calculate the distance. I have tried adding a column in power query with the following:
= Table.AddColumn(#"Inserted Merged Column", "Custom", each Json.Document(Web.Content(http://dev.virtualearth.net/REST/v1/Locations?query= & countryRegion="UK"&PostalCode=Text.from([Addressline6]) & locality=Text.From([Addressline4]) & maxResults=1 &key="AuM2IVexzTdbn5uZ8LR1ruMqCle3e0RO6yfghggfhghnewz5hyCmrM_QZAIYW2eU")))[resourceSets]{0}[resources]{0}[point][coordinates]{0}
I get the error: The name 'web.content isn't recognized. Note that I put in a fake key above.
Any idea where I am going wrong?
Solved! Go to Solution.
Hi @jacques_412 ,
The function is Web.Contents(...).
https://learn.microsoft.com/en-us/powerquery-m/web-contents
Pete
Proud to be a Datanaut!
Hi @jacques_412 ,
The function is Web.Contents(...).
https://learn.microsoft.com/en-us/powerquery-m/web-contents
Pete
Proud to be a Datanaut!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 26 | |
| 17 | |
| 13 | |
| 13 | |
| 9 |