Power BI Map Visualizations: Mapping Continents and Countries

Maps are everywhere, with instant access to detailed electronic maps available directly from phones, tablets, computers, and cars. Some people use old maps as wall art. For others, the large folded paper map found in a car door side pocket is still the preferred option when electronic maps are not available (though it should be updated periodically, since roads may have changed over the past 50 years).

From a technology standpoint, the coronavirus pandemic demonstrated the critically important need for digital mapping services. Maps relayed information about COVID-19 case levels, hospitalizations, deaths, and vaccine availability through a familiar and easy-to-use visualization. Vast amounts of data from all over the world were consolidated and made available at aggregate global and granular local levels through maps.

Adding Map visualizations to Power BI seems straightforward given their ubiquity. While adding the visualization is simple, getting the data to render correctly is more complicated. This is partly due to issues specific to Power BI, but the complexity also reflects how intricate the world is. Continents, regions, countries, and cities can have different names and political statuses. Disputed territories might be recognized differently depending on political perspectives and countries that span multiple continents can be difficult to categorize. This complexity is compounded at the city level, where non-unique names introduce a separate set of ambiguity problems, covered in Power BI Map Visualizations: Mapping Common City Names.

Mapping is inherently complex regardless of the platform used. Power BI, which relies on Bing/Azure for its mapping services, adds another layer of complexity. Bing/Azure might recognize locations differently than Google Maps or other mapping services in terms of naming, borders, and political status, since each provider maintains its own geographic database and political-recognition policies.

Successful geocoding does not necessarily imply successful shape rendering. In several cases, Power BI correctly identifies a location for a Map visualization while the corresponding Filled Map visualization renders incomplete or disputed boundaries.

The examples below illustrate some of these challenges with Power BI.

Enable Map Visualizations in Power BI

Power BI Map visualizations are not enabled by default due to security reasons. Map visuals send geographic data to Microsoft’s mapping service to render locations, so organizations should review their data-handling requirements before enabling them.

If the error Map and filled map visuals are disabled is displayed, enable the following security option to use the Map or Filled Map visualizations.

  1. From the Power BI application menu, click File.
  2. Click Options and settings.
  3. Click Options. The Options window is displayed.
  4. Within the GLOBAL section, click Security.
  5. In the list of Security options, find the Map and Filled Map visuals section and enable the Use Map and Filled Map visuals option.
  6. Click the OK button to close the Options window.

Continents

Power BI’s mapping service recognizes the following seven continents.

NOTE: The terms Australia and Oceania are not interchangeable with respect to recognized continent names. As an example, the term Australia when used as a continent name in Power BI does not fill New Zealand on a Filled Map visualization. However, the term Oceania, when set to the Data category of Continent, does fill New Zealand. Power BI’s mapping service recognizes both Australia and Oceania as continent values, but they produce different Filled Map results. In this context, Oceania represents a broader geographic grouping that includes New Zealand, while Australia does not.

Columns containing continent names should be set to the Continent data category.

  1. From the Data pane, select the data field containing continent names.
  2. On the Column tools tab, set Data category to Continent.
CONTINENT
Africa
Antarctica
Asia
Australia
Europe
North America
South America
Data Table: Continent names

Map Visualization Using Continent Names

Using the listed continent names, a Map visualization places the bubbles at a central point in the expected locations.

Screenshot of a Map visualization using continent names in Power BI.
Map Visualization Using Continent Names

Filled Map Visualization Using Continent Names

Using a Filled Map visualization instead of a Map visualization produces some unexpected results. All of the continents are filled as expected. However, some island nations and territories are not filled when using continent names only. As an example, Cuba, Haiti, and Dominican Republic are filled as expected but Jamaica and Puerto Rico are not filled.

Screenshot of a Filled Map visualization using continent names in Power BI.
Filled Map Visualization Using Continent Names

Countries

Mapping country data is both fascinating and problematic. A search for a reference list of valid country names for Power BI did not reveal a single, consistent source. There are many partially recognized countries, disputed territories, and varying names. Countries listed in one reference might not appear in another because they are not recognized by the organization maintaining the list. Even if a country is listed, Power BI might not recognize it in its built-in mapping service. Country names also vary, for example, the United States can appear as the United States, United States of America, U.S., U.S.A., or simply America.

This country list is neither official nor complete. It simply includes names and associated counts that were recognized by Power BI’s mapping service at the time the list was assembled. Mapping behavior may change over time as Microsoft updates its underlying geographic data. If a country is missing or incorrectly categorized, correct it in the report and retest the results.

Also included is a list of additional locations recognized by Power BI’s mapping service when the Data category is set to Country. Note that this is not a comprehensive list, so use it carefully. For example, Puerto Rico is listed as a country in Power BI but is actually a U.S. territory.

Columns containing country names should be set to the Country data category.

  1. From the Data pane, select the data field containing country names.
  2. On the Column tools tab, set Data category to Country.

Africa

There are 54 countries mapped to Africa. The Map visualization is rendered as expected. However, the Filled Map visualization appears to have unfilled areas in Sudan and South Sudan along with a few surrounding islands and territories.

Screenshot of a Map visualization using country names (Africa) in Power BI.
Map Visualization Using Country Names (Africa)
Screenshot of a Filled Map visualization using country names (Africa) in Power BI.
Filled Map Visualization Using Country Names (Africa)

Asia

There are 47 countries mapped to Asia. The Map visualization is rendered as expected. However, the Filled Map visualization appears to have unfilled areas along the border of China with India, Kyrgyzstan, and Kazakhstan as well as unfilled surrounding islands and territories. There are also unfilled areas with respect to Israel and Palestine.

Screenshot of a Map visualization using country names (Asia) in Power BI.
Map Visualization Using Country Names (Asia)
Screenshot of a Filled Map visualization using country names (Asia) in Power BI.
Filled Map Visualization Using Country Names (Asia)

Australia

There are 14 countries mapped to Australia. Both the Map and Filled Map visualizations render as expected.

Screenshot of a Map visualization using country names (Australia) in Power BI.
Map Visualization Using Country Names (Australia)
Screenshot of a Filled Map visualization using country names (Australia) in Power BI.
Filled Map Visualization Using Country Names (Australia)

Europe

There are 44 countries mapped to Europe. The Map visualization is rendered as expected. However, the Filled Map visualization appears to double-count Italy as represented by a darker fill color. One possible explanation is that the mapping service treats Vatican City as a separate geographic entity, resulting in overlapping polygons or aggregation behavior.

Screenshot of a Map visualization using country names (Europe) in Power BI.
Map Visualization Using Country Names (Europe)
Screenshot of a Filled Map visualization using country names (Europe) in Power BI.
Filled Map Visualization Using Country Names (Europe)

North America

There are 22 countries mapped to North America. Both the Map and Filled Map visualizations render as expected.

Screenshot of a Map visualization using country names (North America) in Power BI.
Map Visualization Using Country Names (North America)
Screenshot of a Filled Map visualization using country names (North America) in Power BI.
Filled Map Visualization Using Country Names (North America)

South America

There are 13 countries mapped to South America. Both the Map and Filled Map visualizations render as expected. French Guiana is listed in the other countries, territories, and lands section, so it remains unmarked and unfilled here.

Screenshot of a Map visualization using country names (South America) in Power BI.
Map Visualization Using Country Names (South America)
Screenshot of a Filled Map visualization using country names (South America) in Power BI.
Filled Map Visualization Using Country Names (South America)

Other Countries, Territories, and Lands

There are 51 additional countries, territories, islands, and lands recognized by Power BI’s mapping service and rendered in Map visualizations when the Data category is set to Country. Several entries in this category are commonly mistaken for sovereign countries, including Hong Kong and Macao (special administrative regions of China) and Taiwan (a self-governing territory with a disputed international status).

Screenshot of a Map visualization using country names (Other countries, territories, and lands) in Power BI.
Map Visualization Using Country Names (Other countries, territories, and lands)
Screenshot of a Filled Map visualization using country names (Other countries, territories, and lands) in Power BI.
Filled Map Visualization Using Country Names (Other countries, territories, and lands)

Combined Country List

NOTE: The country table below groups nations using the standard continent model for reference purposes. This grouping does not necessarily match Filled Map rendering behavior. See the Continent Names section above for the Australia/Oceania distinction.

AFRICAASIAAUSTRALIAEUROPENORTH AMERICASOUTH AMERICAOTHER
AlgeriaAfghanistanAustraliaAlbaniaAntigua and BarbudaArgentinaAmerican Samoa
AngolaArmeniaFederated States of MicronesiaAndorraBahamasBoliviaAnguilla
BeninAzerbaijanFijiAustriaBarbadosBrazilAntarctica
BotswanaBahrainKiribatiBelarusBelizeChileAruba
Burkina FasoBangladeshMarshall IslandsBelgiumCanadaColombiaBermuda
BurundiBhutanNauruBosnia and HerzegovinaCosta RicaEcuadorBonaire
CameroonBruneiNew ZealandBulgariaCubaGuyanaBouvet Island
Cape VerdeCambodiaPalauCroatiaDominicaParaguayBritish Indian Ocean Territory
Central African RepublicChinaPapua New GuineaCzechiaDominican RepublicPeruBritish Virgin Islands
ChadCyprusSamoaDenmarkEl SalvadorSurinameCayman Islands
ComorosGeorgiaSolomon IslandsEstoniaGrenadaTrinidad and TobagoChristmas Island
Côte d’IvoireIndiaTongaFinlandGuatemalaUruguayCocos (Keeling) Islands
Democratic Republic of the CongoIndonesiaTuvaluFranceHaitiVenezuelaCook Islands
DjiboutiIranVanuatuGermanyHondurasCuraçao
EgyptIraqGreeceJamaicaFalkland Islands
Equatorial GuineaIsraelHungaryMexicoFaroe Islands
EritreaJapanIcelandNicaraguaFrench Guiana
EswatiniJordanIrelandPanamaFrench Polynesia
EthiopiaKazakhstanItalySaint Kitts and NevisFrench Southern and Antarctic Lands
GabonKuwaitLatviaSaint LuciaGibraltar
GhanaKyrgyzstanLiechtensteinSaint Vincent and the GrenadinesGreenland
GuineaLaosLithuaniaUnited StatesGuadeloupe
Guinea-BissauLebanonLuxembourgGuam
KenyaMalaysiaMaltaGuernsey
LesothoMaldivesMoldovaHeard Island and McDonald Islands
LiberiaMongoliaMonacoHong Kong
LibyaMyanmarMontenegroIsle of Man
MadagascarNepalNetherlandsJersey
MalawiNorth KoreaNorth MacedoniaKosovo
MaliOmanNorwayMacao
MauritaniaPakistanPolandMartinique
MauritiusPhilippinesPortugalMayotte
MoroccoQatarRomaniaMontserrat
MozambiqueSaudi ArabiaRussiaNew Caledonia
NamibiaSingaporeSan MarinoNiue
NigerSouth KoreaSerbiaNorfolk Island
NigeriaSri LankaSlovakiaNorthern Mariana Islands
Republic of the CongoSyriaSloveniaPitcairn Islands
RwandaTajikistanSpainPuerto Rico
São Tomé and PríncipeThailandSwedenRéunion
SenegalTimor-LesteSwitzerlandSaint Barthelemy
SeychellesTurkeyUkraineSaint Helena, Ascension and Tristan Da Cunha
Sierra LeoneTurkmenistanUnited KingdomSaint Martin
SomaliaUnited Arab EmiratesVatican CitySaint Pierre and Miquelon
South AfricaUzbekistanSint Maarten
South SudanVietnamSouth Georgia and South Sandwich Islands
SudanYemenSvalbard
TanzaniaTaiwan
The GambiaTokelau
TogoTurks and Caicos
TunisiaWallis and Futuna
Uganda
Zambia
Zimbabwe
Data Table: All countries, territories, and lands

Known Rendering Quirks

RegionIssuePossible Cause
OceaniaNew Zealand not filled when using Australia as continent name.Power BI treats Australia and Oceania as distinct continent categories.
CaribbeanJamaica and Puerto Rico not filled on Filled Map (continent-level).Island nations/territories inconsistently included in continent boundary data.
AfricaSudan and South Sudan unfilled areas.Disputed or recently changed border data.
AsiaUnfilled areas along China’s borders with India, Kyrgyzstan, and Kazakhstan; Israel/Palestine.Disputed territory boundaries.
EuropeItaly double-counted (darker fill).Vatican City may be treated as a separate geographic entity by the mapping service.
Known Rendering Quirks by Region

Summary

Integrating Map visualizations into Power BI can be challenging because geographic names, borders, territories, and recognition policies vary across mapping providers. Adding a Map visual is straightforward. Ensuring that locations resolve and render consistently requires standardized geographic data, appropriate data categories, and validation of the results in the target visualization. The examples in this article illustrate several cases where Power BI’s mapping service recognizes a location name, but the corresponding Filled Map output differs from the expected geographic boundary.