Forum Discussion
interactive polygons on map
- 4 months ago
Hi -Power BI does NOT natively perform point-in-polygon calculations, you can use Azure Maps visual in Power BI (supports custom polygon(GeoJSon).
use this link: geojson.io | powered by Mapbox to convert your text with accurate coordniates.
Hope this helps.
- 4 months ago
Hi Michal_M
Yes, the correct approach for your requirement is to use the Azure Maps visual with GeoJSON polygons.
It supports:
- Clickable polygon regions
- Cross-filtering other visuals in the report
- A more future-proof solution compared to older map visuals
How to start:
- Convert your TXT polygon coordinates into GeoJSON format
- Add the Azure Maps visual in Power BI
- Load the GeoJSON as a polygon layer
- Enable selection to allow filtering of other visuals
Important: Power BI does not read TXT polygon files directly—you must convert them into GeoJSON first.
Please mark this as solved if it resolves your issue. - 4 months ago
Thanks for the update. Azure Maps doesn’t read GeoJSON from a column (Location field), so that’s why nothing is showing.
Please make sure you’re using Azure Maps visual (not Map/Filled Map). Then check the Format pane for Layers or Reference layer options to load polygons. If you don’t see this option, it may depend on your Power BI version.
You can try these steps it might help. Let us know how it works on your end.
Hi Michal_M
Yes, the correct approach for your requirement is to use the Azure Maps visual with GeoJSON polygons.
It supports:
- Clickable polygon regions
- Cross-filtering other visuals in the report
- A more future-proof solution compared to older map visuals
How to start:
- Convert your TXT polygon coordinates into GeoJSON format
- Add the Azure Maps visual in Power BI
- Load the GeoJSON as a polygon layer
- Enable selection to allow filtering of other visuals
Important: Power BI does not read TXT polygon files directly—you must convert them into GeoJSON first.
Please mark this as solved if it resolves your issue.
Hi Future_To_BI
I prepared my GeoJason file. But I do not know how to load it as a polygon layer to my visualization. I do not have such an option. I created table with GoeJSON coordinates in one column, but When I add it to Azure map as a Location, nothing is happening
- V-yubandi-msft4 months agoCommunity Support
Thanks for the update. Azure Maps doesn’t read GeoJSON from a column (Location field), so that’s why nothing is showing.
Please make sure you’re using Azure Maps visual (not Map/Filled Map). Then check the Format pane for Layers or Reference layer options to load polygons. If you don’t see this option, it may depend on your Power BI version.
You can try these steps it might help. Let us know how it works on your end.
- Michal_M4 months agoRegular Visitor
V-yubandi-msft , thanks for the hint. I got my polygons loaded on azure maps and they are visible. I need also to have them interactive: clicking on certain polygon should filter other visualization with graphs, tables to show data for this certain polygon. In all source tables I got linking column with Area ID, but I do not know how to activate this filtering.
- V-yubandi-msft4 months agoCommunity Support
It's good to see that the polygons are displaying correctly. For filtering, make sure your GeoJSON and dataset both use the same AreaID. Use this field in the Azure Maps visual, such as in the Legend or Category section.
This setup should allow selecting a polygon to filter the other visuals.
Please give it a try once.