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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Fred-Montreal
Frequent Visitor

Custom map My TopoJSON doesn't understand the name of my shapes

Hi community,

 

I have read many articles, post, and so on to create my custom shape for a map.

The fileformat must be topoJSON and this tool (mapshaper) is really used full to convert many geo formats to topoJSON

 

My goal is to create a file with the 17 administrative provinces of Quebec. I have found the geo data on the official quebec website.

But, for a reason I don't understand, none of my region names are recognized in the shapes.

It's like if each shapes has no name.

 

FredMontreal_0-1653577209869.png

 

What can I do? What I have to check or correct in my topoJSON file to be able to vizualise the colors into the shapes?

 

Thanks

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi  @Fred-Montreal ,

Pls test the steps like the below:

You can import your custom topojson file as a table and collect the values that way. Then you'll be able to use the key values in your visuals as well. 

  1. go to getdata and choose the json source
  2. import your topojson file
  3. the tricky part, you have to navigate to the key information by expanding the records, and turning them into a table (check out a guide here: Using Power BI with JSON Data Sources and Files (mssqltips.com))
  4. create a relation between the geoid in the new geography table and the county column in the countyresemi table

Once the above steps are done you should have your new geography table ready for use with your other table.

 

Below you'll find an example of when I import a similar topojson file for Dutch municipalities.

vluwangmsft_0-1653898509422.png

 

 

Refer:

https://community.powerbi.com/t5/Desktop/Pull-custom-shape-map-topoJSON-keys-into-table-or-tooltip/m... 

https://community.powerbi.com/t5/Desktop/Problem-using-custom-shape-map/td-p/55795 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Hi,

 

Your approach is interesting but in this situation, I don't know how to load the data in the table to the map.

Here is the file with the geolocalisation of the Quebec district.

And here is the file with the Quebec district name.

 

In the first file I have latitude and longitude. How do you load them in a Power BI Map to vizualise the shape?

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.