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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
frost789
Frequent Visitor

How to apply conditional formatting to individual Column Category in a clustered column chart?

I have the following visual, I'd like to apply a conditional formatting (change a column's color) individually without changing the other column's conditional formatting options 

 

frost789_0-1749250282352.png

I'm only able to change the conditional formatting options for All columns, 

frost789_1-1749250372224.png

The conditional formatting button "fx" is not available when I choose a category.

frost789_2-1749250473772.png

 

 What can I do if I want to make Good Standing to follow a set of conditional formatting rules while have Probation/Suspension to follow a different set of conditional formatting rules?

9 REPLIES 9
v-hashadapu
Community Support
Community Support

Hi @frost789 , I wanted to check with you and see if the provided information was useful. If any of it helped resolve your question, consider marking it as "Accept as Solution" to make it easier for others to find. Let me know if there's anything else I can assist with!

Ashish_Excel
Resolver V
Resolver V

Hi,

Share the download link of the PBI file.  Also, clearly state the conditional formatting rules for good standing and Probation.

The PBIX file is available at the following link

https://filebin.net/t9vmj7we59n3xgpi/ConditionalFormatting.pbix

The rules are as follows:

frost789_0-1749336805205.png

My attempt is to have "Good Standing" column staying at blue (say that's our school color, we always want it blue). "Probation/Suspension" changes colors with the above rules. Thank you! 

Hi,

I wrote this measure

Colour measure = if(MIN(Undup[PROB/SUSP])="Good standing","Blue",if([StudentCount]>10,"Red",if([StudentCount]>8,"yellow","Green")))

Then under Visual > Column > fx, did this

Ashish_Excel_0-1749363982764.png

to get this result

Ashish_Excel_1-1749363996496.png

 

I appreciate your help. However, the conditions are not correct (please refer to the "rules" screenshot. They are in percentages). It's red only if:

("Probation/Suspension" count)/ ("Probation/Suspension" Count + "Good Standing" Count) >= 0.1 then "red"

 

("Probation/Suspension" count)/ ("Probation/Suspension" Count + "Good Standing" Count) >= 0.08 but less than 0.1 then "yellow"

Hi,

Try these measures

All student count = CALCULATE([StudentCount],ALL(Undup[PROB/SUSP]))
Ratio = DIVIDE([StudentCount],[All student count])
Colour measure = if(MIN(Undup[PROB/SUSP])="Good standing","Blue",if([Ratio]>0.1,"Red",if([Ratio]>0.08,"yellow","Green")))

Drag the colour measure to Visual > Column fx

Ashish_Excel_0-1749427928243.png

 

Thank you for your reply, but there has been a slight change in the requirements.

Is it possible to accomplish this in a pie chart?

Pass pie is always gray (#e6e6e6)

 

If Fail percentage is <=8%, the Fail pie should be green

If Fail percentage is >8% and <=10%, the Fail pie should be yellow

If Fail percentage is > 10%, the Fail pie should be red

 

If Withdraw percentage is <=8%, the Withdraw pie should be green

If Withdraw percentage is >8% and <=10%, the Withdraw pie should be yellow

If Withdraw percentage is > 10%, the Withdraw pie should be red

 

https://filebin.net/k73pbolb3kmvgolp/PieChartConditionalFormatting.pbix

 

 

Hi @frost789 , Thank you for reaching out to the Microsoft Community Forum.

 

Please check below documentation on how to achieve this in a pie chart.

Power BI: Conditional formatting the Pie Visual - Microsoft Fabric Community

 

If this helped solve the issue, please consider marking it “Accept as Solution” so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.

Not sure of how to colour the slices of a pie chart but this measure will colour the data labels by going to Format > Details Labels > Values > Color.  Ratio is the same measure as shared earlier.

Colour measure = if(MIN('Dup Data'[PFW])<>"Pass",if([Ratio]<=0.08,"Green",if([Ratio]<=0.10,"Yellow","Red")),"Grey")

Hope this helps.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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