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 formatting x-axis on line chart

Hi there,

 

I have a measure that is essentially =IF(Val1 > Val2, 1, 0). As far as I can tell this is working correctly.

 

I want to use the measure to conditionally format the font color of the x-axis of a line chart, but I can't get it to work.

I can use the measure to conditionally format the background of each cell on a matrix visual. I use a Rule on the Meaure: if value = 1 then red.

 

I've tried having the measure output "FF0000" where it would output 1, and format the color to equal the measure value (FF0000) but still doesnt work.

 

Screenshot 2023-05-02 111945.png

Is formatting the x-axis like I want to do not supported?

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , I tried a measure like this and used that in conditional formatting using the field value option of x-axis label and it work on the grand total value. I remember this was supported on the label sometime back but not on axis label . But seem like not working in the current release

Measure 3 = if([Net]>500000, "red", "green")
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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