Forum Discussion
Shape map duplicate counties
- 5 years ago
I figured it out.
You have to create a column concactenating the state fips code and the county fips code and then use that in your location field on visual. You can also just add the list below in the link to your data model.
https://www.nrcs.usda.gov/wps/portal/nrcs/detail/national/home/?cid=nrcs143_013697
Hello,
In my data, my counties are just listed as a text string. Hennepin is just listed as Hennpin for the county.
hi markjohnson952 - this could be the issue for the conflict as the visual would not be able to differentiate between counties with the same name in different states. You would need to setup a county key which is unique for State + County combination - in my opinion this should help resolve the issue.
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
- markjohnson9525 years ago
Helper I
Hello,
I have tried using a different TOPOJSON which has the complete State name and County name which are both in my data model in Power BI and I have the same issue. Below is the link to the file I am using.
- negi0075 years ago
Community Champion
markjohnson952 I had faced similiar issues when i was working on one of my dashboard. I had same district name in multiple states of India. To tackle this problem, I renamed the district name for having same name in the JSON file like District_1, District_2. This wasy I was able to resolve this issue. In your case also try if changing the name of Jefferson, Colorado to "Jefferson, Colorado" and same way change the name for other county. Give it a try for few counties. If it works. you may do it for all counties. Let me know if it helps you.
- markjohnson9525 years ago
Helper I
Hi negi007
I have tried to change the name and also format to correct the issue but it still persists.
Below is a link to a PBIX file from a similar thread which displays the same behavior. Try Lincoln county in Nevada or Jefferson county in Colorado.
https://www.dropbox.com/s/ktsykfhe9tfmdtd/Shape%20Map%20-%20unique%20map%20keys2.pbix?dl=0