Forum Discussion
Anonymous
4 years agoNot applicable
Dates measure or calculated column
Hi Experts need a measure to do the following, If the date is in the past from Todays date the 1, if the date is the current month then 2, if the date is in future months/periods after the curren...
- 4 years ago
That would be like this.
Formatting = VAR _Date = MAX ( Dates[Date] ) RETURN SWITCH( TRUE(), _Date <= TODAY(),1, _Date <= EOMONTH(TODAY(),0),2, 3 )
jdbuchanan71
Super User
4 years agoThat would be like this.
Formatting =
VAR _Date = MAX ( Dates[Date] )
RETURN
SWITCH(
TRUE(),
_Date <= TODAY(),1,
_Date <= EOMONTH(TODAY(),0),2,
3
)