DATEADD – values for some period shifted in time by a year, quarter or day (DAX – Power Pivot, Power BI)
The DATEADD function calculates values for a reporting period, but shifted by some time.
Works similarly to the SAMEPERIODLASTYEAR function, but the shift is not necessary by one year. We can shift by any number of years, quarters, months or days, forward or backward.
Example - shift by two quarters back
- Two quarters ago = CALCULATE(
In a result can be seen, that all values are really shifted by two quarters - the quarter totals as well as month values "inside" quarters.