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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
achin1979
Frequent Visitor

ISO Country Code : Country undefined

I've created a shape map, but it does not recognize Singapore and Taiwan.

- Tried ISO Alpha 2 & 3 too. Not successful.

2 ACCEPTED SOLUTIONS

Hey @achin1979 ,

 

if I open the global_dot_json inside a text editor, I can't find Singapore if I'm searching for the text "Singapore"

There is just a fraction for what is necessary to visualize Singapore, Alpha code 2 "SG"

In contrast this is inside the JSON for Germany

{
                    "arcs": [
                        [
                            223,
                            224,
                            -221,
                            -44,
                            -163,
                            225,
                            226,
                            -57,
                            227,
                            228,
                            229
                        ]
                    ],
                    "type": "Polygon",
                    "properties": {
                        "name": "Germany",
                        "Alpha-2": "DE"
                    },
                    "id": "DEU"
                },

And this is SG:

{
                    "type": null,
                    "properties": {
                        "Alpha-2": "SG",
                        "Alpha-3": "SGP"
                    }
                },

 

The json file is missing essential information, this is the reason why SG will not be visualized.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

@TomMartens Thanks for pointing it out. I've reloaded new json file with arc for those missing countries. It's working now. Thanks a lot! 😉

View solution in original post

7 REPLIES 7
TomMartens
Super User
Super User

Hey @achin1979 ,

 

please take the time and create a pbix file that contains sample data. Upload the file to to onedrive or dropbox and share the link.

Please describe what is your expected result and also mention what map visual you are using.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

A shape map cannot show country locations like Taiwan, Hong Kong, and Singapore.

 

Suspect Hong Kong has returned to China, hence no longer displayed as a country on its own?

Singapore is missing from the Shape map, and Taiwan is not detectable. 

2022-07-12_11-56-29.png2022-07-12_11-55-02.png

 

 

But all works well with Filled Map which is not something I need. 

@TomMartens ,  PBIX file (right click to download) 

Hey @achin1979 ,

 

thank you for sharing the file.

Did you inspect the json file, using a simple text search for Singapore?

I realized that Singapore is not contained in the countries-110m.json file that you will find here: GitHub - topojson/world-atlas: Pre-built TopoJSON from Natural Earth.

Maybe this is the same reason with your file.

 

Hopefully, this provides some new ideas on how to tackle your challenge.

 

Regards,

Tom 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks, @TomMartens 

I did. Singapore, Hong Kong & Taiwan are all there.  I'm new to json. 

Is that mean it's not possible to have them & better to change to another type of map?

global.json 

Hey @achin1979 ,

 

if I open the global_dot_json inside a text editor, I can't find Singapore if I'm searching for the text "Singapore"

There is just a fraction for what is necessary to visualize Singapore, Alpha code 2 "SG"

In contrast this is inside the JSON for Germany

{
                    "arcs": [
                        [
                            223,
                            224,
                            -221,
                            -44,
                            -163,
                            225,
                            226,
                            -57,
                            227,
                            228,
                            229
                        ]
                    ],
                    "type": "Polygon",
                    "properties": {
                        "name": "Germany",
                        "Alpha-2": "DE"
                    },
                    "id": "DEU"
                },

And this is SG:

{
                    "type": null,
                    "properties": {
                        "Alpha-2": "SG",
                        "Alpha-3": "SGP"
                    }
                },

 

The json file is missing essential information, this is the reason why SG will not be visualized.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

@TomMartens Thanks for pointing it out. I've reloaded new json file with arc for those missing countries. It's working now. Thanks a lot! 😉

Hey @achin1979 ,

if it's a public JSON file you might consider adding the source as it will happen others as well. If you created the arcs yourself, consider providing a short description of how you did it, e.g. using qGIS

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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