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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Using .shp files in Power BI to create maps

Hi,

 

I have an SHP file that I am able to view using QGIS. I need to use this file to create a shape map in PowerBI.

I have converted the file to .geojson and then to TopoJson as suggested by many threads. I am unable to move forward from this point. 

 

This is what I see when I upload the TopoJSON fileThis is what I see when I upload the TopoJSON file

After I convert it to a table.After I convert it to a table.

I am stuck at this point and don't know how to expand this into a table contianing all my information and being able to plot the shape map. 

 

I have tried this solution but it doesn't seem to work for me. Not sure if I am doing something wrong or if it is the wrong approach entirely for my case.

 

Any help is highly appreciated! 

TIA

4 REPLIES 4
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

To create shape maps by using your custom topojson files, you can try the following steps without uploading it to Power Query Editors:

  1. Using the latest version power bi desktop,( https://www.microsoft.com/en-us/download/details.aspx?id=45331) ,enable Shape map features (Files > Options and settings > Options > Preview features > Shape map visual).options.png
  2. When you create a shape map, in Format menu, under Shape options, select +Add map and choose your custom .json file.shape map.png

For further information about shape map, you can refer the following Microsoft document that can also help you:

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-shape-map

 

Best Regards,

Yingjie Li

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for this explanation. 

I'm very new to PowerBI, and tried to upload a shapefile just as a test run.

As I understand, a data sheet must be loaded in order to visualize any type of map. 
I loaded a "dummy" excel file with 1 row, but when opening a new shape map, I don't have the option to "add a map type". 

Any tips on it? I'm really struggeling to load any shapefile to a project. 

nadav_navon_0-1733330544394.png

 



HI, Sorry to bring this up again, but I have a similiar situation. I have done the above steps using the custom maps, however the Map contains Alaska and Hawaii.  In R, it looks like a filter can be applied to the shape map.  Is that possible in Power BI?

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

maybe this helps.

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-shape-map

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.