Forum Discussion
Saxon10
4 years agoPost Prodigy
Conditional formatting for Variable
I have the following columns are Id, Code, Result1, Result2, Result1 colour code and Result colour code in data table. For Result1 and Resul2 created slicer table for switch the Results in vis...
- 4 years ago
Define a similar color measure.
VarColor = SWITCH ( SELECTEDVALUE ( Slicer[Result] ), "Result 1", SELECTEDVALUE ( REPORT[Result colour code] ), "Result 2", SELECTEDVALUE ( REPORT[Result2 colour code] ) )Then use that in the conditional formatting.
AlexisOlson
4 years agoSuper User
Define a similar color measure.
VarColor =
SWITCH (
SELECTEDVALUE ( Slicer[Result] ),
"Result 1", SELECTEDVALUE ( REPORT[Result colour code] ),
"Result 2", SELECTEDVALUE ( REPORT[Result2 colour code] )
)
Then use that in the conditional formatting.
- Saxon104 years agoPost Prodigy
Hi. Thanks for your reply and sorry for the late response.
Your solution is working well.