Forum Discussion
Anonymous
5 years agoNot applicable
Today()
I have the following measure that occasionally throws an error I believe to be associated with the Today(). CurA = AverageX( CALCULATETABLE( 'FACT_PROD_CUM_VW', FACT_PROD_CUM_VW[Prod Date] ...
- 5 years ago
Anonymous , When you subract days from date , like this DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())-8)
On the 8th on month this will error as date do not take 0 in day .
Try like DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())) -8
I have logged an issue sometime back on this.
amitchandak
Super User
5 years agoAnonymous , When you subract days from date , like this DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())-8)
On the 8th on month this will error as date do not take 0 in day .
Try like DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())) -8
I have logged an issue sometime back on this.