Forum Discussion

AuburnEagle2315's avatar
AuburnEagle2315
Advocate I
4 years ago
Solved

Conditional Formatting Based on Measure

I have a column(Act/TGT) that divides current revenue with its target to get a percentage.   I want to apply conditional formatting to highlight values that are below the elapsed shipment days.   ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    For this I would use some variation of the following and select this measure using a Field Value in the conditional formatting options. 

    ColorDays = IF [ActTGT%] > SELECTEDVALUE ShippingTargets[Target] ), "#1b7640", "#ff0000" )

    The selected value function allows this to be dynamic by referencing a small table of shipping targets you would need to build. If you just want the color to change at a certain static number, you could remove that piece.