Forum Discussion
Conditional Formatting with multiple conditions
- 3 years ago
Hi paul_jones ,
The best way for conditional color is:
ConditionalColor = SWITCH ( TRUE (), SELECTEDVALUE ( 'Table'[Error Message] ) = "Did not start" && SELECTEDVALUE ( 'Table'[Percentage] ) = 0.5, "#HexColorcode", SELECTEDVALUE ( 'Table'[Error Message] ) = "Interrupted" && SELECTEDVALUE ( 'Table'[Percentage] ) = 0.3, "#HexColorcode" )If you want to use your second table,you can use CROSSJOIN as well.
But I did not get the logic. This table is a range?
Btw, Measure above would solve your problem.
It helped? Mark it as an accepted solution.
Regards,
Loran
Hi paul_jones ,
The best way for conditional color is:
ConditionalColor =
SWITCH (
TRUE (),
SELECTEDVALUE ( 'Table'[Error Message] ) = "Did not start"
&& SELECTEDVALUE ( 'Table'[Percentage] ) = 0.5, "#HexColorcode",
SELECTEDVALUE ( 'Table'[Error Message] ) = "Interrupted"
&& SELECTEDVALUE ( 'Table'[Percentage] ) = 0.3, "#HexColorcode"
)
If you want to use your second table,you can use CROSSJOIN as well.
But I did not get the logic. This table is a range?
Btw, Measure above would solve your problem.
It helped? Mark it as an accepted solution.
Regards,
Loran
Forgive me, I'm a novice, but where do I use this?
- HealthyBob3 years agoRegular Visitor
Hi,
you can create an measure. If you do so there will Open a bar at the top of your Report. Now you can Type in the Code.
Best
- paul_jones3 years agoFrequent Visitor
I wasn't clear. I know how to create a measure. I just didn't know how to apply it to conditional formatting.