Forum Discussion
Anonymous
5 years agoNot applicable
DATEADD AND MAX
Hello, I am in trouble with DATEADD DAX function. For now, I have two functions which are running efficiently. Current Month default phase = CALCULATE(SUM('public costs phase'[Heures mens...
- 5 years ago
Hi Anonymous ,
Modify the expression of "MAX(DATEADD('public costs phase'[Monthly Date],-1,month))" as below:
MAXX(DATEADD('public costs phase'[Monthly Date],-1,month),[Monthly Date])Best Regards,
KellyDid I answer your question? Mark my post as a solution!
amitchandak
Super User
5 years agoAnonymous , You can use date as dateadd
example measure = //subract 12 months
var _max = max(Date[Date])
return
Date(year(_max), month(_max)-12, day(_day))
refer: