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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
michellepace
Resolver III
Resolver III

Dynamically color selected month in bar chart

Hi there,

I have a bar chart where my month slicer is *not* applied as I need to see all months. However, I do want to color the month which has been selected (December) in my barchart. I've attempted to do this by created a measure called My_MonthSelected_Measure... but after that point I get stuck.

Question: Could anyone please suggest how I go about dynamically colouring the selected month my barchart?

Download my .pbix file: from here

screenshot.png

 

As always, thank you.
Michelle

1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @michellepace ,

 

Check for @TomMartens's comment and solution in this thread.

https://community.powerbi.com/t5/Desktop/Urgent-Change-bar-color/m-p/669622#M322172

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

View solution in original post

3 REPLIES 3
Anand24
Super User
Super User

Hi @michellepace ,

 

Check for @TomMartens's comment and solution in this thread.

https://community.powerbi.com/t5/Desktop/Urgent-Change-bar-color/m-p/669622#M322172

 

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

As well as TomMartin's solution here is the solution I understood and could recreate for myself: https://forum.enterprisedna.co/t/color-bar-chart-by-slicer-selection-dax-conditional-formatting/1024...

pranit828
Community Champion
Community Champion

Hi @michellepace 

 

There is still a better way which you might like more.

 

Click on the filter on your report then , Go to 

Format --> Edit interactions

 

You will see the below options just on top of the bar chart 

pranit828_0-1597502995600.png

Select the middle one as shown above.

 

Did I resolve your issue? Mark my post as a solution!

 

Now try using your filter. Happy

 

Better and Intersting, Right.

Did I resolve your issue? Mark my post as a solution!

 

Appreciate your Kudos, Press the thumbs up button!!

 

Regards,
Pranit

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.