Forum Discussion
Need Help with Power BI Map Visual Zoom & Highlighting Selected Data Point
Hi all,
I’m new to Power BI and could use some guidance on achieving specific behavior with a map visual. Here’s the task:
Dataset and Setup:
- I have a dataset with columns such as Centre Name, Latitude, Longitude, and a Funded? column (with values "Y" or "N").
- A slicer is configured to show only the names of funded centers (Funded? = "Y").
- A map visual plots all centers using their latitude and longitude, with a slicer that filters by center name.
Goal:
- When no selection is made in the slicer:
- The map should show all centers (both funded and non-funded) in a zoomed-out view.
- When a center is selected in the slicer:
- The map should zoom in to that center, keeping it at the center of the view.
- All other centers (both funded and non-funded) within the zoomed-in area should remain visible for proximity context.
- The selected center should be visually distinct (e.g., larger bubble or different color).
- When no selection is made in the slicer:
Current Progress:
- I’ve enabled Auto-Zoom in the map visual, and it zooms in when a center is selected.
- However, when a center is selected, all other centers disappear from the map.
Challenges:
- I can’t find a way to keep all centers visible while zooming in on the selected center.
- The slicer currently filters out all other centers when one is selected, even though I want them to remain on the map.
Request:
- How can I configure the map to:
- Keep all centers visible while zooming into the selected center?
- Highlight the selected center (e.g., using size or color) to make it obvious which centre is selected without removing other centers from the map?
- How can I configure the map to:
Any advice or detailed steps would be greatly appreciated! I’m new to Power BI and still learning its nuances, so please explain thoroughly if possible.
Thank you!
- Anonymous1 year ago
Hi mitchellmcgain ,
Unfortunately, this is not possible at the moment. Only one of “Auto Zoom” and “Highlight” can be selected.
You need to create a table for the slicer.
and make sure there is no relationship between the two tables
We will create a measure that will be used to conditionally format the Map's point color.
Measure = VAR __cur_selected_centre = ALLSELECTED('DimTable'[Centre Name]) VAR __unselected_centre = EXCEPT(ALL('Table'[Centre Name]),__cur_selected_centre) VAR __cur_value = SELECTEDVALUE('Table'[Centre Name]) VAR __result = IF( __cur_value IN __cur_selected_centre, "Blue", "Grey") RETURN __resultHere's the effect of highlighting.
Since Slicer is not directly filtering data from the map at this point, the Auto-Zoom function will be inactive at this point.
By all means, please submit the idea.
Welcome to Microsoft Fabric Ideas
Best Regards,
Gao
Community Support TeamIf 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!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
1 Reply
- AnonymousNot applicable
Hi mitchellmcgain ,
Unfortunately, this is not possible at the moment. Only one of “Auto Zoom” and “Highlight” can be selected.
You need to create a table for the slicer.
and make sure there is no relationship between the two tables
We will create a measure that will be used to conditionally format the Map's point color.
Measure = VAR __cur_selected_centre = ALLSELECTED('DimTable'[Centre Name]) VAR __unselected_centre = EXCEPT(ALL('Table'[Centre Name]),__cur_selected_centre) VAR __cur_value = SELECTEDVALUE('Table'[Centre Name]) VAR __result = IF( __cur_value IN __cur_selected_centre, "Blue", "Grey") RETURN __resultHere's the effect of highlighting.
Since Slicer is not directly filtering data from the map at this point, the Auto-Zoom function will be inactive at this point.
By all means, please submit the idea.
Welcome to Microsoft Fabric Ideas
Best Regards,
Gao
Community Support TeamIf 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!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum