Forum Discussion
MAP showing wrong locations when using counties
My company is based in the New England area in USA and I'm attempting to create a map visual which shows sales by either zip code, state or county. Many of our county names are the same as areas in Great Britain and when I drill down to county, the map shows my locations in Great Britain. When I review by state, the map works fine and only shows the New England states. I have created a hierarchy of Country, State, County, City, Zip Code, so I assumed drilling into county would work as the country is part of the heirarchy. I have also tried concatenating a string of "county" + ", United States" but that hasn't worked either. I'm a new user, so there is probably a simple answer for this, but I've been unable to put this heirarchy together in a way which allows the counties to be aware of their appropriate country.
Thanks for the help!
6 Replies
- v-jiascu-msft
Microsoft Employee
Hi lp4034,
Please refer to power-bi-map-tips-and-tricks#in-the-dataset-tips-to-improve-the-underlying-dataset.
1. Create a new calculated column.
Country = "United States"
2. Add two columns in the "Location".
Best Regards,
Dale
- lp4034Frequent Visitor
Thank you for the feedback Dale, and I took your advice and built a map visual using the county field and the country field as location. However, the map still thinks Plymouth county (for example) is in Great Britain (along with a dozen others). I'm not sure why it is not recognizing the country. I have defined the county column as data type "county" and country column as data type "country". If I then add in the zip code to the location, the map looks correct and it all maps into the United States fine (at Country level or zip code level). But even with this setup, I can't drill down into the county level--it goes back to Great Britain.
The only alternative I have been able to make work is to concatenate county and country as in "Plymouth, United States" and use a data type of "place". This maps perfectly--but then I lose my ability to have a geo-hierarchy that I can drill up and down within.
- v-jiascu-msft
Microsoft Employee