We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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.!
Solved! Go to Solution.
@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...
@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...
It works!! Thank you so much
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 66 | |
| 63 | |
| 37 | |
| 34 | |
| 22 |