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
Mario_Moubayed_
New Member

Clustered Column Chart & Conditional Formatting

Hello Community,

Clould anyone help me in solving my issue with the Clustered Column Chart & Conditional Formatting?
I cannot add a Conditional Formatting to a Clustered Column Chart, it's working just on Table and other visuals.
Ex: If I am comparing a Standard score with the current score by using 2 colors and I want to use a third color to highlight the scores that are below the standard, I am not able to add a condition for that and to change the column color.
Thank you in advance,
Mario

4 REPLIES 4
v-binbinyu-msft
Community Support
Community Support

Hi @Mario_Moubayed_ ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1673933236823.png

2. create a measure with below dax formula

Measure =
VAR baseline = 175
VAR cur_product =
    SELECTEDVALUE ( 'Table'[Product] )
VAR cur_sale =
    CALCULATE ( MAX ( 'Table'[Sale] ), 'Table'[Product] = cur_product )
VAR _color =
    IF ( cur_sale > baseline, "green", "red" )
RETURN
    _color

3. add a cluster column chart with fields, set the column color like below

vbinbinyumsft_1-1673933413137.png

vbinbinyumsft_2-1673933437272.png

vbinbinyumsft_3-1673933462586.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-binbinyu-msft , 
Thank you for your reply, but unfortunately it's not working with the Clustered Column Chart, it just works with the stacked Column Chart

Look into using a Deneb visual for that. Gives you more flexibility with the mark colors.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Top Solution Authors