Forum Discussion

Kodonnellm's avatar
Kodonnellm
Frequent Visitor
1 year ago

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.

 

 

Thank you!

 

2 Replies

  • Anonymous's avatar
    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.

    Select background color, and put the measure to it.

    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.

     

     

  • Anonymous's avatar
    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.

     

    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.