Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to colour data in table by its value

I have a column in my table that has two outputs: "OOl" or "In Limits". I want it to be red for OOL and green for in limits. I found this measure from another question but not sure what to do with it to apply the colour to my table: 

Color Measure = SWITCH(MAX('df_final'[CL OOL]),"In Limits","Green","OOL","Red"). df_final is the name of my dataset, will I use this name for my table visual or is there another name? I cannot see any name for the table when I click on it.
 
Edit: I also have a column next to this column that I would like the colours to match. Is there a way to do this?

3 Replies