Forum Discussion
interactive polygons on map
Hi,
I need to create vizual with map. On map I need to have certain polygons. Those polygons should be interactive - should act as a filter to show other vizuals on dashboard. Where to start? What kind of vizual I need (Shape map, azure map, other)? What kind of source data I need, in which format? I have txt file with geo coordinates of one polygon.
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.
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.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.
7 Replies
- rajendraongole1Super User
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.
- Future_To_BIResolver I
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.- Michal_MRegular Visitor
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-msftCommunity 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.
- V-yubandi-msftCommunity Support
Hi Michal_M ,
We have not yet received an update from you. Could you confirm whether you’ve tried the previous suggestions? If you need more information or clarification, please let us know.
Thank you.