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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.