Forum Discussion
Anonymous
6 years agoNot applicable
Calculate Between 320 and 365
Hi, I m using below measures to calculate Total count between 320 and 365 days.Its showing blank value..Is this measure is correct ? Date'[Date] is calendar table join with Table [CREATED_ON]...
- Anonymous6 years ago
Its working . For older than 1 year .
it should be below measure right?
Age=
var _dt =minx('Date','Date'[Date])
var _min =_dt+365
return
CALCULATE(COUNT(Table [CREATED_ON]),Table [CREATED_ON]>=_min)
az38
Community Champion
6 years agoAnonymous
try
Age= CALCULATE(
COUNT(Table[CREATED_ON]),
DATESBETWEEN(Table[CREATED_ON],DATEADD(LASTDATE('Date'[Date]),-320,DAY),DATEADD(LASTDATE('Date'[Date]),-365,DAY) ) )