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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ACraig08
Helper I
Helper I

Column Chart Coloring not applying like you would think

So I have a clustered column chart by quarter and fiscal year. I wanted to color the columns based on their fiscal year. When I go the the Columns dropdown it shows selections like this:

ACraig08_1-1715089884172.png When I assign a color it says it assigned it to each chosen fiscal year (so all of the 2021's, or all of the 2022's). But it only colors the first ones like this:

ACraig08_2-1715089983767.png

If I try to add Fiscal Year to legend it messes the graph up like this:

ACraig08_3-1715090032774.png

Any help is greatly appriciated.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ACraig08 , Only when use one measure and no legend, You can color based on condition like

 

If(Max(Table[Year]) = Year(Today()) , "Green", "Blue")

 

You can use the measure in conditional formatting using Field value option

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...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@ACraig08 , Only when use one measure and no legend, You can color based on condition like

 

If(Max(Table[Year]) = Year(Today()) , "Green", "Blue")

 

You can use the measure in conditional formatting using Field value option

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...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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