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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.