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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.