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

Problem formatting Chart Data Label / Axis Label via measure

I'm trying to set the colour of a chart's data label and/or X axis label via a measure but find that the labels are always set to the same colour.

The same measure applied as conditional formatting in a table applies the correct colour though.

 

Here's how a simplified example looks - pbix linked below btw:

 

mg94733_0-1655458990556.png

Data:

ReportMonthIDActualTarget
01/01/20221510
01/01/20222310
01/02/20223810
01/02/20224710
01/03/20225920
01/03/20226820
01/04/202271220
01/04/202281520

 

the measure is:

 

Label Colour =
IF ( SUM ( MyTable[Actual] ) >= MAX ( MyTable[Target] ), "Green", "Red" )

 

 

Demo pbix 

 

any help/guidance appreciated 

1 REPLY 1
lbendlin
Super User
Super User

Still not supported.  Vote for the idea.

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