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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

conditional formatting based on category / group on axis in a chart visual

Hi there,

 

I'm trying to do something like the below simplified example. so depending on the category on the axis, I want the bar to be coloured differently. In below example there are 3 different colours, but I'd be happy if for example there would be a limit of 2 different ones. my source table contains the ranking as listed in the table. 

 

any suggestions? 

thanks


BarChartCat.PNG

1 ACCEPTED SOLUTION

You are certain you can't see the three dots when you hover over the upper right corner?

 

Capture.PNG

 

It has been available for sometime as far as i know.

It does not appear however if you have something in the legend data field.

View solution in original post

4 REPLIES 4
Gordonlilj
Solution Sage
Solution Sage

Hi,

 

If i understand correctly then you could use and play around with conditional formatting of the data colors

 

Capture.PNG

Use category rank for example and then change rules to what you need

 

Capture2.PNG

 

 

 

 

 

Anonymous
Not applicable

@Gordonlilj 

thanks for your response. I don't seem to have the option of conditional formatting under data colors, just the one color. Is that a recent addition to pbi?  I don't think I installed the latest version. Or would the conditional formatting be elsewhere in maintained? 

 

You are certain you can't see the three dots when you hover over the upper right corner?

 

Capture.PNG

 

It has been available for sometime as far as i know.

It does not appear however if you have something in the legend data field.

Anonymous
Not applicable

I had something in my legend field. I've taken it out now which brings up opportunities. Both conditional formatting and manually assigning colours to different categories. 

 

thanks for having pointed that out around the legend. 

 

all sorted now. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.