Forum Discussion
DATEADD
- Anonymous3 years ago
Hi.
Please provide some more information of what your data looks like and what you want to achive.
Regarding the function DATEADD: make sure you use correct syntax, e.g.:New_Date = DATEADD('Sales'[Order Date], 30, DAY)
You might also consider looking into Time Intelligence Functions in Dax:
https://learn.microsoft.com/en-us/dax/time-intelligence-functions-dax
Or combine Calculate (second argument filter context) and Previous Week to calculate a sum or similar previous week:Sales WoW = CALCULATE(SUM([Sales Amount]), PREVIOUSWEEK(Calendar[Date]))
Hope this helps you on your way.
Kind regards!
Hi.
Please provide some more information of what your data looks like and what you want to achive.
Regarding the function DATEADD: make sure you use correct syntax, e.g.:
New_Date = DATEADD('Sales'[Order Date], 30, DAY)
You might also consider looking into Time Intelligence Functions in Dax:
https://learn.microsoft.com/en-us/dax/time-intelligence-functions-dax
Or combine Calculate (second argument filter context) and Previous Week to calculate a sum or similar previous week:
Sales WoW = CALCULATE(SUM([Sales Amount]), PREVIOUSWEEK(Calendar[Date]))
Hope this helps you on your way.
Kind regards!