- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Map visualisation shows wrong country for countrycode GB
Hi
I am new to PowerBI, but has managed to make a very nice turnover report with Map visualisation
I have a customer tabel from Business Central with country codes. Unfortunately Power BI map visualisation translates the Business Central code GB (For Great Brittain) to Guinea-Bissau, and my turnover (on the map) ends up in West Africa.
How do I correct the Map to show Great Brittain instead ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Erik
You will have to add custom columns in Power Query for the Country and Country code like so (or can be done in DAX if you like but you'll be pulling in data with PQ so may as well do it there)
= if [Country] = "Great Britain" then "United Kingdom" else [Country]
for the Country Code
= if [Country Code] = "GB" then "UK" else [Country Code]
Giving this.
Then delete the original columns and rename the new ones with the deleted column names
Set the Data Category for both columns to Country and you can then map data using with either the Country Name or Country Code
With all that said, you are right, the correct ISO standard code GB is for Great Britain and Guinea-Bissau is GW. So it looks like these ISO codes are not implemented correctly in Power BI.
You can report this bug here
Issues - Microsoft Fabric Community
Regards
Phil
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
Blog :: YouTube Channel :: Connect on Linkedin
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Erik
You will have to add custom columns in Power Query for the Country and Country code like so (or can be done in DAX if you like but you'll be pulling in data with PQ so may as well do it there)
= if [Country] = "Great Britain" then "United Kingdom" else [Country]
for the Country Code
= if [Country Code] = "GB" then "UK" else [Country Code]
Giving this.
Then delete the original columns and rename the new ones with the deleted column names
Set the Data Category for both columns to Country and you can then map data using with either the Country Name or Country Code
With all that said, you are right, the correct ISO standard code GB is for Great Britain and Guinea-Bissau is GW. So it looks like these ISO codes are not implemented correctly in Power BI.
You can report this bug here
Issues - Microsoft Fabric Community
Regards
Phil
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
Blog :: YouTube Channel :: Connect on Linkedin
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Change GB to UK. The correct full name for the country is the United Kingdom of Great Britain and Northern Ireland.
Phil
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
Blog :: YouTube Channel :: Connect on Linkedin
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Philip
Your solution is of course obvious, but in reality Busines Central codes cannot be changed. BC is one of the biggest ERP solutions in the world and I wonder why they would choose a code that is not right. If I google country codes GB is meant for Great Brittain.
Is there a way to transform the data entry "GB" to "UK" from BC when the customer tabel is loaded in PowerBI. I suppose PowerBI will identify UK as Great Brittain ?
Br Erik

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
05-24-2024 01:10 AM | |||
08-11-2024 12:17 PM | |||
Anonymous
| 03-21-2018 12:47 PM | ||
10-17-2024 01:32 PM | |||
12-11-2024 07:23 AM |
User | Count |
---|---|
96 | |
87 | |
83 | |
52 | |
51 |