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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
edt4444
Frequent Visitor

Map Coloring Based on Slicer Selection

Hello,

 

I'm looking for a way to color a map based on a slicer selection. If the map below represented customer locations, I would like the bubble for the selected customer to be colored differently while keeping all other locations on the map. I have adjusted the interaction from the slicer to the map to none, which I believe should keep all locations on the map. 

 

Is it possible to color the selected customer's location using SELECTEDVALUE or some similar function?

 

Thanks.

 

Sample Map.jpg

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @edt4444 

You may create a slicer table and use below measure.Attached sample file for your reference.

Measure =
IF (
    SELECTEDVALUE ( Slicer[Country] ) = MAX ( Table1[Country] ),
    SELECTEDVALUE ( Slicer[Value] )
)

1.pngRegards,

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @edt4444 

You may create a slicer table and use below measure.Attached sample file for your reference.

Measure =
IF (
    SELECTEDVALUE ( Slicer[Country] ) = MAX ( Table1[Country] ),
    SELECTEDVALUE ( Slicer[Value] )
)

1.pngRegards,

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Is it possible to use this with the ArcGIS Maps visual? The map visual you used is not working well with the large amount of data I have. 

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 MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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