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
Kodonnellm
Frequent Visitor

Need help with conditional formatting based on another column to highlight in red

Hi,

 

I need help with a conditional formatting measure, so that under each quarter in the individual rows, if the Act FTE value is greater than Fcst FTE value, highlight in red.

Kodonnellm_0-1733779970231.png

 

 

Thank you!

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Kodonnellm 

Based on your picture, you  [Act FTE] value and  [Fcst FTE] value is text type, the sum() function need the number type, you need to change the data type to whole number in power bi.

vxinruzhumsft_0-1733878877333.png

 

Or you can try to change the measure to the following.

 

Color_format =
IF ( MAX ( Table[Act FTE] ) > MAX ( Table[Fcse FTE] ), "red" )

 

Best Regards!

Yolo Zhu

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

 

Anonymous
Not applicable

Hi @Kodonnellm 

You can create a measure.

 

Color_format =
IF ( SUM ( [Act FTE] ) > SUM ( [Fcse FTE] ), "red" )

 

Then click the conditional formatting of 'act fte' field.

vxinruzhumsft_0-1733799181296.png

Select background color, and put the measure to it.

vxinruzhumsft_1-1733799311202.png

And you can refer to the following link to know more about conditional formatting by using measure.

Conditional Formatting Using Custom Measure - Microsoft Fabric Community

 

Best Regards!

Yolo Zhu

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

 

 

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.