Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
StanBI
Frequent Visitor

Custom Shape Map visual not displaying Boolean Values correctly

Hi,

 

I am creating a custom map visual displaying the globe and its countries. I want to see if a country has a certain kind of status having boolean values to indicate a countries status. If I display the values on a "Filled Map" the countries that have a true status are displayed in the correct color. However, when I change to a shape map with a custom world.json it shows the world correctly but all the values display a "False" color. However when I click on the countries that are supposed to have a "true" color, the color changes in the correct one. Why is that?

 

Thanks in advance

 

StanBI_0-1727351178500.png

 

4 REPLIES 4
SamInogic
Super User
Super User

Hi,

 

The issue with your Power BI Shape Map is likely due to improper data mapping between the custom world.json file and your dataset. When you click on a country, it triggers a refresh, showing the correct color for “True” values, but initially, the data isn’t mapped properly, defaulting to “False.”

 

To fix this issue:

Check Data Mapping: Ensure that the country names or codes in your data match those in the world.json file.

Validate JSON: Confirm that the structure of the world.json file is correct and compatible with Power BI.

Refresh Mapping: Re-import the Shape Map and check if the mapping updates correctly.

Test Standard Map: Try using a standard map to ensure that the boolean values are displayed correctly.

 

Hope this helps.

 

 

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Thank you for your answer!

However, I still don't get it to work. I have tried your fixes:

 

Check Data Mapping: Ensure that the country names or codes in your data match those in the world.json file.

I Checked the JSON file and the country names are aligned with the ones I have, it recognizes each country correctly

 

Validate JSON: Confirm that the structure of the world.json file is correct and compatible with Power BI.


I checked the structue but it is just a standard TopoJSON file downloaded from: https://github.com/topojson/world-atlas?tab=readme-ov-file, which seems to be fine.

 

Refresh Mapping: Re-import the Shape Map and check if the mapping updates correctly.

 

Unfortunatly, re importing didn't work either

Test Standard Map: Try using a standard map to ensure that the boolean values are displayed correctly.

 

Standard map works for me, and the boolean values are displayed correctly. I just don't know why the shape map does not...

 

As you can see in my picture I cross higlighted france and it shows me the correct "True" color. However if I de select France and return to the overall view it just gives the "False" color on every country.

StanBI_1-1727435474897.png

StanBI_0-1727435446843.png

 

HotChilli
Community Champion
Community Champion

Do you have the 'i' warning on the side of the shapemap visual when the 'false' colours are being displayed? If so, it's telling you there are too many datapoints.

If not, please provide the pbix and i'll have a look.

I do not have the "i" warning. Unfortunatly, I can't share my pbix since it is classified data. I really think this is a bug because in the normal map visuals it is correctly displayed.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors