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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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