Forum Discussion

viggo71's avatar
viggo71
Frequent Visitor
6 years ago
Solved

Conditionnal formating switch dynamic value

Hello,

 

how to color result based on objective value ? As below :

 

Item      Objective     Result

A            90%              95%

B            80%              70%

 

Thanks

  • viggo71 assuming objective and results are columns, add following measure use it for conditional formatting.

     

    My Color = 
    IF ( MAX ( Table[Result] ) < MAX ( Table[Objective], "Red", "Green" )
    
    

     

    if object and results are measures, remove MAX function in the above expression. Use My Color mesure in the conditional formatting.

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

3 Replies