PARALLELPERIOD DAX Function

The PARALLELPERIOD function returns a table that contains a column of dates that represents a period parallel to the dates in the specified dates column, in the current context, with the dates shifted a number of intervals either forward in time or back in time.

Note: In DAX, the PARALLELPERIOD function returns full periods at the given granularity level.

DAX Syntax PARALLELPERIOD(dates, number_of_intervals, interval)

The function takes the following parameters:

PARALLELPERIOD dax function

Example: Create a measure.

DAX

Sum of PARALLELPERIOD income = CALCULATE(SUM(Sheet8[Annual Income]), PARALLELPERIOD('Sheet8'[Year],-1,YEAR))
PARALLELPERIOD dax function

For example, if the current date in the dates column is 7 July 2008 the above DAX function returns all the dates of the year 2007 i.e., from 1st Jan 2007 to 31st December 2007.