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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Saipreethi
Helper I
Helper I

Scatter Chart Color plot

Hi Everyone,

 

When I select a country in slicer then it should plot one color(Black) in the scatter chart with bubble, When I select more than 1 country it should plot with black color for selected countries and unselected countries needs to be in Blue color. But In my case when I select single country it is showing as black color and when I select more than 1 country it is turning out into blue color(selected countries) and unselected countries are changing into black. I want it to be reverse. Can anyone help me with the measure please.!

Saipreethi_0-1663072510189.png

 

 

Saipreethi_1-1663072562357.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Saipreethi , 2 things are required. One is you are not using legend in the visual, second, the company slicer need to come from an independent table. Then create a color measure

 

measure

if(max(Table[Country]) in Values(Country[Country]) , "Black", "Blue" )

 

if needed use isfiltered to check if data is filtered or not

 

Use this in conditional formatting using field value option

 

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Saipreethi , 2 things are required. One is you are not using legend in the visual, second, the company slicer need to come from an independent table. Then create a color measure

 

measure

if(max(Table[Country]) in Values(Country[Country]) , "Black", "Blue" )

 

if needed use isfiltered to check if data is filtered or not

 

Use this in conditional formatting using field value option

 

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It works!! Thank you so much

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors