Forum Discussion

lcfaria's avatar
lcfaria
Helper II
2 years ago
Solved

Wrong map location with custom shape map

Hello everyone,   I need help from the community.   I'm working with a custom shape map of Panama and I'm having trouble plotting cities with the same name. PS: You can find the link to the pbix...
  • HotChilli's avatar
    2 years ago

    If you 'View Map Type Key' in the shapemap options-> Format visual, you'll find a unique code in there on each row.

    You have to get that unique code in your data too, so that powerbi can work out how to link your data to the shapemap's keys.

    So find yourself a csv file of unique codes, provinces, districts, cities and use Power Query to merge that unique code into your data. It's best to make it a text field if I remember correctly.

    Once you've done that, put the code in the Location field well and powerbi should find the correct area.