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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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