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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
bend1234567
Frequent Visitor

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

@bend1234567 , 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")

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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