Chapter 9: Date & Time Functions 2/2: Time Intelligence Functions 289
Result
Analysis
If the second parameter is negative, PARALLELPERIOD() goes back in time. The
third parameter can be YEAR, QUARTER, or MONTH (please note these are enumerated
constants and not strings), but not DAY. PARALLELPERIOD() is similar to DATEADD().
However, the former always returns full periods and not partial periods. You can
demonstrate the difference by comparing the quarterly results for 2010 from the
following two examples:
=CALCULATE(SUM('FactSales'[SalesAmount]),
PARALLELPERIOD(DimDate[Datekey],-1,YEAR))
=CALCULATE(SUM('FactSales'[SalesAmount]),
DATEADD(DimDate[Datekey],-1,YEAR))
PREVIOUSDAY()
PREVIOUSDAY() gives the value from the previous day when combined with a
calculation function.
The example is a measure on the Order Details table.