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
kboscar1
Frequent Visitor

Power BI maps works for the US but not other countries or vice versa

Hi there!

 

I have been fussing around with Power BI's map visualization for about a week now and have tried a slew of suggestions from this forum, but I am still stumped. Here is my map with the majority of the locations:

kboscar1_4-1681851082811.png

 

 

I have a list of locations across the globe, each with a Country and City column, and some with a State column. I have categorized these columns as such in the Data Model (Country as Country, City as City, and State as State or Province). 

kboscar1_0-1681850847449.png

 

My problem lies here. If I use Country and City as my hierarchy for the location in the map visualization, every location is correct OUTSIDE of the US.

kboscar1_1-1681850896981.png

However, the US cities get messed up because there are several cities in the US with the same name. For example, the below city should be referring to Erwin, New York, not Erwin, North Carolina.

kboscar1_2-1681850974914.png

 

So then I added the State column to my hierarchy. This fixed my issues in the US. As you can see Erwin is indeed in New York now. 

kboscar1_7-1681851389870.png

kboscar1_3-1681851045930.png

 

BUT, the problem is, a lot of my data outside the US does not have a State. So now, the ones without a State aren't being mapped at all. For example, you can see I should have 3 data points in Taiwan. But by including the State column, I now only have 1.

Without State column:

kboscar1_6-1681851316064.png

 

With State Column:

kboscar1_5-1681851283965.png

 

I have tried creating a custom column with "City, State Country" when a location has data in the State column, and "City, Country" when a location does not have data in the State column. This just caused weirder issues. It put Warsaw, Poland into Pennsylvania.

kboscar1_8-1681851604708.png

 

What else can I do? If no solutions, I supposed I'll have to gather and harcode latitudes and longitudes which I have been trying to avoid.

 

THANK YOU!!

1 REPLY 1
amitchandak
Super User
Super User

@kboscar1 , Refer the incorrect location soltion from curbal and howtodopowerbi

https://www.youtube.com/watch?v=fhyfXcsXI9c

https://www.youtube.com/watch?v=7ZCrCEicVNY

 

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.