Forum Discussion

markjohnson952's avatar
5 years ago
Solved

Shape map duplicate counties

I am using the Shape Map with a TOPOJSON to identify sales by county.  In the cases where you have the same county name in multiple states (Jefferson, Orange, Washington) my sales numbers are all the same for those counties (Jefferson in Colorado has $10 in sales while Jefferson in Oregon also has $10).

 

How can I fix this in my PBIX or JSON?

 

Below is the link to the TOPOJSON file.

 

https://raw.githubusercontent.com/deldersveld/topojson/master/countries/united-states/lower-quality-20m/20m-US-counties.json

 

Thanks!

 

 

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    hi markjohnson952 - can you also share a screenshot of your datamodel? Do your table setup have unique keys for each country?

     

    Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!

    • markjohnson952's avatar
      markjohnson952
      Helper I

      Hello,

       

      In my data, my counties are just listed as a text string.  Hennepin is just listed as Hennpin for the county.

      • Anonymous's avatar
        Anonymous
        Not applicable

        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!