Forum Discussion
DatesAdd Function with Custom Date - Help Needed
SimonSeez , Thanks for subscribing.
Calculate([Total Revenue], DatesQTD(DateAdd('Date Table' [Date], -1, Quarter))) means last qtr. That is blank means no data in last qtr but data in last year same qtr.
That sound like strange.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
One quick question before I share data.
I modified the measure to use the date that is in the same table as the revenue but instead of getting the total of last quarter I got the value of October 2020
Calculate([Total Revenue], DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter))).
- amitchandak5 years agoSuper User
SimonSeez , dateadd need continuous dates . And it return blank when it does not get it.
refer this video, where I have shown that for a column - https://www.youtube.com/watch?v=9qiRivlBv8w
The best way test is
Calculate(Min('DWH Revenue'[Date]), DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter)))
Calculate(Max('DWH Revenue'[Date]), DatesQTD(DateAdd('DWH Revenue'[Date], -1, Quarter)))Now you know what you time intelligence function returns: min and max. It returns a set of dates.