Forum Discussion
Conditional formatting for specific cells in a matrix
Is it possible to use conditional formatting only for the cells from the red square?
So if the result is >= 50% i want the color to be green and if it is less than 50% to be red.
- Anonymous4 years ago
Hi savulesc ,
I have created a simple sample, please refer to it to see if it helps you.
Create a measure.
Measure = VAR _1 = IF ( MAX ( 'Table'[subject] ) = "A" && ( MAX ( 'Table'[ID] ) = "A01" || MAX ( 'Table'[ID] ) = "A02" ) && MAX ( 'Table'[month1] ) >= 0.5, "Green", IF ( MAX ( 'Table'[subject] ) = "A" && ( MAX ( 'Table'[ID] ) = "A01" || MAX ( 'Table'[ID] ) = "A02" ) && MAX ( 'Table'[month1] ) < 0.5, "Red", BLANK () ) ) RETURN IF ( _1 = "Green", 0.7, IF ( _1 = "Red", 0.4, BLANK () ) )Then format the background.
If I have misunderstood your meaning, please provide your pbix file without privacy information and more details with your desired output.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- amitchandakSuper User
savulesc , Create a measure and use that in conditional formatting using the field value option
color = if([measure] <.5 , "Red" , "Green" )
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539 - savulescHelper I
amitchandak that will work for the whole column not just for the 2 cells that i want.
- AnonymousNot applicable
Hi savulesc ,
I have created a simple sample, please refer to it to see if it helps you.
Create a measure.
Measure = VAR _1 = IF ( MAX ( 'Table'[subject] ) = "A" && ( MAX ( 'Table'[ID] ) = "A01" || MAX ( 'Table'[ID] ) = "A02" ) && MAX ( 'Table'[month1] ) >= 0.5, "Green", IF ( MAX ( 'Table'[subject] ) = "A" && ( MAX ( 'Table'[ID] ) = "A01" || MAX ( 'Table'[ID] ) = "A02" ) && MAX ( 'Table'[month1] ) < 0.5, "Red", BLANK () ) ) RETURN IF ( _1 = "Green", 0.7, IF ( _1 = "Red", 0.4, BLANK () ) )Then format the background.
If I have misunderstood your meaning, please provide your pbix file without privacy information and more details with your desired output.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.