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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors