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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
leopoldvili_1
Helper I
Helper I

Using Long Lat add city names

Hi, I want to add city names on my data with long Lat. is it anyhow possible in powerbi?

I have a table where I have different locations (xy)-shops in Germany and I want to know in which city this shops are located.

I downloaded German cities with coordinates, but could not make it work.

 my locations: 

 

LongLatClose city Name
8.46215       50.2334Empty. 

 

 

Any help would be appreciatable.

Br,G

1 ACCEPTED SOLUTION

Hi @leopoldvili_1 ,

 

You could refer these topics about how to find the nearest location based on the given coordinates.

https://community.powerbi.com/t5/Desktop/Find-the-nearest-location-for-a-customer/m-p/217048 

https://community.powerbi.com/t5/Desktop/Calculate-nearest-points-by-geographical-coordinates/m-p/73... 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @leopoldvili_1 ,

 

I don't think Power BI has such feature. But if you have a table that contains Long Lat and city name, we might be able to do this with DAX.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft  i have city coordinates as city centers only. Downloaded from this link  https://www.basedig.com/german-government/list-of-all-cities-and-towns-in-germany-with-gps-coordinat...

and I have another table with locations spreaded in the different city,  only have Long, Lat

Hi @leopoldvili_1 ,

 

You could refer these topics about how to find the nearest location based on the given coordinates.

https://community.powerbi.com/t5/Desktop/Find-the-nearest-location-for-a-customer/m-p/217048 

https://community.powerbi.com/t5/Desktop/Calculate-nearest-points-by-geographical-coordinates/m-p/73... 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@leopoldvili_1 , Not very clear. If you have city name in one table and City name long, lat in another table, you can merge them  in power query

 

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak thank you for your reply. No i dont have a city name in another table only xy. 

Br, G

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.