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
jalaomar
Helper IV
Helper IV

font color conditional formatting based on background color.

Hi,

 

I have created a barchart that shows the %complete for a project Plan and have changed bar color to the desired state.

however I need to add an explaning text to show the %percent complete, so added a shape on top of the bar with the text.

 

I am wondering if it is even possible to change the font color of the text field based on the background color of the bar chart. when it's grey the font color will be black and when it's dark blue the font color changes to white?

 

jalaomar_1-1677088528775.png

 

 

2 REPLIES 2
jalaomar
Helper IV
Helper IV

@Ahmedx It is based on these 2 measures if that is what you mean?

 

jalaomar_1-1677140983303.png

 

 

Ahmedx
Super User
Super User

what does the background color of the bar depend on?

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors