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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Conditional label colour inconsistent

I have several charts where I need to change the label colour based on the response, in order to achieve good contrast with the section colour. To achieve this I have a lookup table, that defines the colour of the label based on the value of the bar section. 

naledi_h_0-1679398029934.png

 

For some reason this works correctly for some of the charts but not for others, and not consistently throughout every filter selection. The following are four different charts, in one case the horizontal chart works but not the vertical one, in the other case it's the other way around. 

naledi_h_1-1679398189897.pngnaledi_h_2-1679398195980.png


I have placed the text colour field on the tooltip to check that the right colour is coming through, and it is. I switched out the fields to define the colour just to make sure that the field is being read in and it clearly is, as the two correct colours are being used, just in the wrong place. 

 

I've seen some reports of bugs with label colour from last year, but not sure if this is related as the problem is slightly different. Any ideas about what this could be or other steps I could take to test? 

 

 



 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I managed to figure out what the issue was. For the charts that were not showing the label colours correctly, the colours were set to "reverse stack order". By using the sorting on the chart instead, the colours now display correctly. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I managed to figure out what the issue was. For the charts that were not showing the label colours correctly, the colours were set to "reverse stack order". By using the sorting on the chart instead, the colours now display correctly. 

lbendlin
Super User
Super User

You can raise an issue at https://issues.powerbi.com . If you have a Pro license you can consider raising a Pro ticket at https://powerbi.microsoft.com/en-us/support/pro/

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.