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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Solution Sage
Solution Sage

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.