Forum Discussion
Gandarthvader
5 months agoRegular Visitor
Conditional Formatting Measure Highlighting Dates in Past and Future
Hello, I currently have a measure created to highlight the date in a table if it's within the next 60 days YELLOW, but it also included today. What I'd like to do, and can't figure out, is ho...
- 5 months ago
Please try the measure below:
Open Color = VAR _Date = MAX ( 'Current'[Current OTP] ) VAR _Today = TODAY () RETURN SWITCH ( TRUE (), _Date <= _Today, "#92D050", _Date <= _Today + 60, "#FFFF99", BLANK () )
lbendlin
Super User
5 months agoOpen Color =
var _datediff=DATEDIFF(MAX('Current'[Current OTP]),TODAY(),DAY)
return SWITCH(TRUE(),
_datediff>60,BLANK(),
_datediff>0,"yellow",
_datediff>-60,"green"
)