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

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

Reply
TomTomTom
Helper II
Helper II

How to PQ this geoJSON file on a map?

I'd like to be able to use this geojson file into maps on PowerBI, where I would then overlay other info, but I can't seem to get the query right:

 

geojson file in question

 

Can anyone help?

1 ACCEPTED SOLUTION

Hello,

I saw the other post you made about maps and I wonder if your problem remains unsolved.  Are you actually trying to use the map you have as a shapemap?

If so, you might find this thread helpful

https://community.powerbi.com/t5/Power-Query/Importing-TopoJSON-file-to-create-shape-map-what-Next/m... 

 

Also, read this first https://docs.microsoft.com/en-us/power-bi/visuals/desktop-shape-map#use-custom-maps 

 

You have a geojson map , you need a topojson version of it.  It may exist already (on the web) or you can make it yourself with mapshaper (again, on the web)

 

Get back to me if you need more help.

View solution in original post

3 REPLIES 3
artemus
Microsoft Employee
Microsoft Employee

The query will look like:

let
    Source = Json.Document(File.Contents("<Your file location>")),
    features = Source[features],
    Custom1 = Table.FromRecords(features),
    #"Expanded properties" = Table.ExpandRecordColumn(Custom1, "properties", {"FID", "CCG19CD", "CCG19NM", "BNG_E", "BNG_N", "LONG", "LAT", "Shape__Area", "Shape__Length"}, {"FID", "CCG19CD", "CCG19NM", "BNG_E", "BNG_N", "LONG", "LAT", "Shape__Area", "Shape__Length"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded properties",{"geometry"})
in
    #"Removed Columns"

Power_Bi_Map.PNG

 

Hello,

I saw the other post you made about maps and I wonder if your problem remains unsolved.  Are you actually trying to use the map you have as a shapemap?

If so, you might find this thread helpful

https://community.powerbi.com/t5/Power-Query/Importing-TopoJSON-file-to-create-shape-map-what-Next/m... 

 

Also, read this first https://docs.microsoft.com/en-us/power-bi/visuals/desktop-shape-map#use-custom-maps 

 

You have a geojson map , you need a topojson version of it.  It may exist already (on the web) or you can make it yourself with mapshaper (again, on the web)

 

Get back to me if you need more help.

Thank you. Cracked it.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors