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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
mikemagill
Helper I
Helper I

Highlighting in an Azure Map Visual

I have an Azure Map visual showing a value per postcode.  When the user selects a postcode from a different visual, the map correctly zooms in and just shows that datapoint.  The user, however, wants to see the data for other, nearby postcodes.  This would be slightly similar to what you can do on a chart with 'Edit Interactions' to highlight the selected data point rather than filter.

Is there any way I can do something similar with the map?  I know technically I can work out the distance between postcodes and then, maybe I could create a measure that shows just those postcodes within an x km radius of the selected postcode.  The problem is, I have c. 90,000 postcodes and working out the distance between each will kill the report performance.

Any ideas?

1 ACCEPTED SOLUTION

Hi @mikemagill

Fully understand that.😂

 

As another alternative solution, you could consider using a Heatmap Instead of Points.
If the goal is to show the general area rather than individual postcodes, switching to a heatmap layer in Azure Maps can help preserve visibility while emphasizing high-value areas.


Or, custom Map Visual (via Power BI Custom Visuals or Python/R)
If you need full control, consider creating a custom map visual using Power BI's Python/R scripting or a custom visual like Mapbox, which may support dynamic radius filtering.

 

Either of above is a workaround, you could consider it based on your customer's need.

 

In short, precumputing by SQL database is a way fully matched with your need, however, it is huge workload.

 

Anyway, good luck.😀

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

 

 

View solution in original post

5 REPLIES 5
rajendraongole1
Super User
Super User

Hi @mikemagill  - Yes! You can achieve this effect in Power BI’s Azure Map without filtering out nearby postcodes.

 

Click on the Azure Map visual.
Go to Format > Edit Interactions.
Select your postcode selection visual and change its interaction type from "Filter" to "Highlight".
This will keep other postcodes visible while emphasizing the selected one.

 

rajendraongole1_0-1738950248312.png

 

 

Hope this helps. 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





HI.  That's exactly what I hoped that I could do but the only options available are Filter or None.

Screenshot 2025-02-07 174922.png

Hi @mikemagill,

You are right that Azure Maps in Power BI only provides "Filter" or "None" under Edit Interactions, so you can't use a "Highlight" effect like you would on a bar chart.

Please check the doc for details:

https://learn.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions?tabs=p...

 

If you want this feature to be supported, you could raise an idea here:

https://ideas.fabric.microsoft.com/

 

 

 

Since you have mentioned that 90,000 postcodes and working out the distance between each will kill the report performance, I think the only way is to claclualte the distance, however, you could consider precomputing distances between postcodes and storing them in a table (SQL or Power BI), which is not that easy😂

 

 

  • Precompute distances between postcodes in SQL Server.
  • Store only nearby postcodes (e.g., within 5-10 km) for each postcode.
  • Create a disconnected table of postcodes in Power BI and use a measure to check if a postcode falls within the selected one's precomputed nearby list.

Here are some related blogs for your reference:

Would precomputing distances in SQL Server be an option for your dataset? That way, the report would...

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

 

 

 

 

Many thanks.  I've submitted an idea.

I might explore the SQL database solution but I suspect my client might baulk at an 8 billion row table even if it is only three columns. 😉

Hi @mikemagill

Fully understand that.😂

 

As another alternative solution, you could consider using a Heatmap Instead of Points.
If the goal is to show the general area rather than individual postcodes, switching to a heatmap layer in Azure Maps can help preserve visibility while emphasizing high-value areas.


Or, custom Map Visual (via Power BI Custom Visuals or Python/R)
If you need full control, consider creating a custom map visual using Power BI's Python/R scripting or a custom visual like Mapbox, which may support dynamic radius filtering.

 

Either of above is a workaround, you could consider it based on your customer's need.

 

In short, precumputing by SQL database is a way fully matched with your need, however, it is huge workload.

 

Anyway, good luck.😀

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors