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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors