Forum Discussion
Color formatting based on switch measure
If you want to apply conditional formatting to the values of Measure 1 in a matrix table based on their own values, you can create a measure that calculates the color for each cell. You can then use this measure for conditional formatting.
Here's an example of how you might achieve this:
In this example, the Color Measure calculates the color based on the conditions you specify for Measure 1. You can adjust the conditions inside the SWITCH function to match your specific requirements.
After creating this measure, you can use it for conditional formatting in the matrix table. Set up the conditional formatting rules based on the values returned by the Color Measure.
Give a thumbs up if this is helpful and shoot a sub on YouTube for future updates:
https://www.youtube.com/@AnalyticPulse
- MCacc2 years agoHelper IV
Ok thank you so much for your suggestion.
I have one question though,
measure 1 is used to color the values for 5 values of index row,
How can I use multiple values of my index inside the switch?
Can I use somethig like
SWITCH(index_row
IN {1,2,3,4,5}, IF(measure_1 = "High", "Red", IF(measure_1 = "Low", "Green"...