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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
clawre1
Frequent Visitor

Simple Colour Question

Hi All,

I have set up a report which has a preset slicer on geography (eg England) 

On page 3 of the report I want to show where England ranks out of all the countries in Europe in a standard bar chart so I have turned off the relationship (via Edit interactions) from the slicer to the bar chart. 

Is there a way to keep the slicer (in this case England) highlighted or paint the bar a different colour so it stands out?

As the slicer is changeable so I can't put direct text into the conditional format

 

Any help would be great - Chris 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Check out this thread which tackles a similar challenge:
https://community.powerbi.com/t5/Desktop/Change-color-of-a-bar-based-on-filter/m-p/910090#M436185




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

6 REPLIES 6
PaulDBrown
Community Champion
Community Champion

Check out this thread which tackles a similar challenge:
https://community.powerbi.com/t5/Desktop/Change-color-of-a-bar-based-on-filter/m-p/910090#M436185




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thanks for everyones help the last post led me to 

 
Slicer Selection = Var Select_Slicer = MIN('geography slicer table'[WardName])
Return
VALUE(CALCULATE(SUM('table with bar chart data'[Value]), 'table with bar chart data'[WardName] = Select_Slicer))
 
I then used a conditional format on value not blank - ta da!
Thanks again
FrankAT
Community Champion
Community Champion

Hi,

first create a calculated column in which England gets a number identifier by 1 and all other countrys 0.

Marker = IF(Territory[Country] = "England" ; 1 ; 0)

 

Select the visual > format > data colors > Default color, click on the three dots on the right hand side > Conditional formatting:

24-01-_2020_17-01-32.png

 

Regards FrankAT

Hi FrankAT,

Thanks but not quite what I am looking for as the England would have to be hard coded into the report. I am looking for something slicer driven, is there a way to write into the datasheet a 1 when a country is slected by the slicer then I could use the conditional formatting?

Cheers Chris

amitchandak
Super User
Super User

Check if this can help

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-filled-maps-choropleths

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

Hi Amitchandak,

No sorry I am well versed in mapping, this actually relates to UK Ward level categories but I need to really show a basic bar chart as I have overused the maps in the report already. I chose England vs Europe so it would be easier to explain. Like the chart accent but feeding from a slicer. Thanks however

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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