Forum Discussion
Userpath77
5 years agoHelper II
Conditional Formatting (2 Rules for same column)
Hello All I have these two DAX measures. I basically need to color one column two different colors (Red if date in other column is within 45 days and Yellow if within 60 days. I will need the 45 d...
- 5 years ago
Hi Userpath77 ,
I believe SWITCH would help here.
MEASURE = SWITCH( TRUE(), SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<45, "RED", SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<60, "YELLOW", "WHITE" )
Payeras_BI
5 years agoSolution Sage
Hi Userpath77 ,
I believe SWITCH would help here.
MEASURE =
SWITCH(
TRUE(),
SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<45,
"RED",
SELECTEDVALUE('Table'[ColumnWithDate])-TODAY()<60,
"YELLOW",
"WHITE"
)
- Userpath775 years agoHelper II
Thanks Payeras-----I had to adjust it a little, but worked perfect! Thanks again.