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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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