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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JDuthie1
Regular Visitor

R script converting Easting/Northing to lat/long for mapping visuals

I have data in the form of easting/northing and i'm trying to convert these to latitude/longitude using R script.  So far i have tried running a script against the datasource as follows.

 

Here is the initial data.

JDuthie1_0-1623078478586.png

Script Run

JDuthie1_4-1623079181460.png

 

Output

JDuthie1_2-1623078570900.png

 

I have also tried using the following script however the same issue occurs where it just returns the original data without a conversion.

 

JDuthie1_5-1623079341433.png

 

 

The output produces no errors however it is not converting it either.  My understanding is that after the script is run the table which is expanded should have a x and y column with the converted co-ordinates. Is there something that i am missing out? Or can R not be used in this way to convert the coordinates?

 

Appreciate any help 🙂

 

TIA

 

 

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi  @JDuthie1 ,

 

Check the blog below:

https://community.powerbi.com/t5/Community-Blog/Geocoding-using-R-and-Google-Maps-in-Power-BI/ba-p/5...

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors