Cheat Sheets/Power BI/PARALLELPERIOD
DAX function

PARALLELPERIODDAX function reference

A whole shifted period.

Syntax

dax
PARALLELPERIOD(<dates>, <number_of_intervals>, <interval>)

Examples

dax
CALCULATE(SUM(Sales[Amount]), PARALLELPERIOD('Date'[Date], -1, YEAR))
A number
dax
CALCULATE(SUM(Sales[Amount]), PARALLELPERIOD('Date'[Date], -1, MONTH))
All of last month's sales, even if only a few days of this month are selected
dax
VAR ThisQuarter = CALCULATE(SUM(Sales[Amount]), PARALLELPERIOD('Date'[Date], 0, QUARTER))
VAR LastQuarter = CALCULATE(SUM(Sales[Amount]), PARALLELPERIOD('Date'[Date], -1, QUARTER))
RETURN ThisQuarter - LastQuarter
Quarter-over-quarter, each side snapped to full quarters

Common mistakes & gotchas

Related DAX functions

From Time intelligence

← Back to the Power BI (DAX) cheat sheet