Forum Discussion

ranghel's avatar
ranghel
Frequent Visitor
3 years ago
Solved

Conditional Formatting (Color Coding) based on a measure

Hello,

 

I'm trying to color-code the values in the matrix based on a measure that I created. Basically, if the value falls within the range of the measure (Calibration Range at the top) have a green background color, otherwise orange. I've been at it for days and still can figure it out. 

This is the formula for my measure (data type - Decimal number):

Calibration Range = FIXED((AssessmentHistory[Assessment Score]-(5)),2,1) & "%" & "-" & FIXED((AssessmentHistory[Assessment Score]+(5)),2,1) & "%"

 

Moreover, the option to format style based on the Field value is not allowing me to pick a field.

 

Thank you in advance for your time.

4 Replies

  • Hi ranghel 
    To format by measure try to select "rules "

     

     

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

     

  • You can fix it in 3 steps:

    1. Set one color in the measure without any conditions

    2. Set this measure for visualization
    3. Set the right condition in the measure to calculate the color

     

     

     

    p.s. Setting the measure type as "Text" has helped in the past, but that no longer works for me now