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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
damit23183
Microsoft Employee
Microsoft Employee

Spatial Data from SQL Table to Power BI Shape (Custom) Mapping

Hi, 

 

I am working on to get Spatial data from SQL table to Power BI but during that process I came to know that first thing will have to do is convert Spatial Data into ShapeFIle then to TopoJSON file. 

 

So I have data like this under spatial column;

Key                 Shape Value

200                 0xE61000001043E590000064........

201                 0xE61000001043E590000018........

 

Now, I would like to convert this into .SHP file so questions are;

 

1) How would I convert this into .shp file?

2) How would I use .shp file with Power BI Custom (Shape) file?

 

Thanks

2 REPLIES 2
Anonymous
Not applicable

Hi @damit23183 ,

 

1) I'm not sure if SQL could export the data as shape file.

2) 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).vjaywmsft_0-1658739975193.png

     

  2. When you create a shape map, in Format menu, under Shape options, select +Add map and choose your custom .json file.vjaywmsft_1-1658739975194.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,

Jay

Hi,

 

THank you for your response. 

I have already done steps you have mentioned before, my current issue is how can generate ShapeFile for Spatial data in SQL table.

 

1) Is there any 3rd party tool I need to use ?

2) Any Microsoft tool that I can use to convert those data with ShapeFile?

 

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.