Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Conditional Formatting with diff requirements

I've been scanning the boards for this specific concern, and can't seem to find the right solution. Tried a few measures suggested, but it doesn't work because I have several values with different co...
  • v-kkf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    Please try the measure.

     

    Color = 
    VAR target =
        CALCULATE (
            SUM ( Roles[Days Open Target] ),
            TREATAS ( VALUES ( 'Table'[Job Level Des] ), Roles[Roles] )
        )
    RETURN
        IF ( SUM ( 'Table'[Days Opened] ) > target, "red", "green" )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.