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
ppgandhi11
Helper V
Helper V

set the font color of a field based on another field in same row.

Hi,

 

I reviewed the page: https://community.powerbi.com/t5/Desktop/how-to-get-font-colors-of-a-column-based-on-other-column-va...

 

I have latest edition of the Power BI Desktop. Has this feature been incorporated since the idea above has been posted? I have already casted my vote in case its not there. I don't see it implemented.

 

Capture.PNG

 

This is my requirement. Paint font in Column1 red when the Column2 values are higher than Column1. Paint it green otherwise. Is there a way to do so in power bi?  Thanks!

 

Prashant-

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@ppgandhi11, this is possible if your values are at the column level. You can make a calculated column that checks if your first value is higher than the second value, and that result can be a numeric 1 or 0.

 

From there, you can use the conditional formatting based on another column. See screenshots below.

 

 

image.png

 

image.png

View solution in original post

4 REPLIES 4
ibarrau
Super User
Super User

Just like rajendran said you can format one column with another one. You can add a column3 with the name of colors and have another table like this:

 

IdColor    Color

1              red

2              green

3              other

 

Add a relationship between column3 and color

 

Then, when you format conditional to column1 or 2, use idColor to add the conditions.

 

Or just put the number on the column3. The first one is a better practise.

 

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

@ppgandhi11, this is possible if your values are at the column level. You can make a calculated column that checks if your first value is higher than the second value, and that result can be a numeric 1 or 0.

 

From there, you can use the conditional formatting based on another column. See screenshots below.

 

 

image.png

 

image.png

Anonymous
Not applicable

If the target and actual value is in different table, then how we can do this same?

please help

@Anonymous

 

It is a measure not a column. So I think I will need to wait until this is implemented. Thanks though!

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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