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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional formatting for gridlines

Hello,

I can't seem to get conditional formatting to work properly for vertical (nor horizontal) gridlines. I have a calculated measure which in this scenario contains values between -0.5 and 0.5, which I want to help visualize with vertical gridlines. I add conditional formatting, but the result is that all the lines have the exact same color. I have included screenshots below to illustrate it:
View of the scatter plot with identical vertical gridlines.View of the scatter plot with identical vertical gridlines.
Screen of the scatter plot. The x-axis contains values between -0.3 and 0.4 (values assigned automatically).

Conditional format (gradient) where -0.5  is supposed to be colored in red, and 0.5 to be colored in green.Conditional format (gradient) where -0.5 is supposed to be colored in red, and 0.5 to be colored in green.
Conditional formatting for the vertical gridlines. The formatting is based on the field which is used for the scatter plot's x-axis.

Same issue with conditional formatting rules. To me it appears that the formatting is just using one value, the max value of the field column it's based on, which is not much different from using a single color, which is not what I need.

Alternatively, I would like to just have one vertical gridline for the value 0, but I haven't found a way to do that either.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@amitchandak, thank you for the clarification. As for what I was looking for, I think it's under the Analytics tab, so I can disregard special formatting for the gridlines.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I think this as of now works on the overall value of measure not on current axis value

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
Anonymous
Not applicable

@amitchandak, thank you for the clarification. As for what I was looking for, I think it's under the Analytics tab, so I can disregard special formatting for the gridlines.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.