Forum Discussion

mitchellmcgain's avatar
mitchellmcgain
New Member
1 year ago
Solved

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, ...
  • Anonymous's avatar
    Anonymous
    1 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
        __result

    Here'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 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!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum