Reference Updated March 24, 2026

PQ

Category: Compare periods

Overview

DescriptionShifts the input node Node one quarter into the future while retaining all other dimensions. Use this when you need last quarter’s values alongside current data for quarter-over-quarter comparisons.
SyntaxPQ('Node')
ParametersNode: Input node that is shifted, specified using the node name in single quotes (e.g. 'Profit')

Examples

Shifting values by one quarter

Each value appears one quarter later in the result.

Input node: Profit

QuarterValue
2025-Q135
2025-Q242
2025-Q347

Formula: PQ('Profit')

Quarter→ PQ Result
2025-Q235
2025-Q342
2025-Q447

Shifting values by two quarters (nested PQ)

Nesting PQ calls shifts values further into the future. Here, each value moves two quarters forward. Try SHIFT as an alternative with a custom offset.

Input node: Profit

QuarterValue
2025-Q135
2025-Q242
2025-Q347

Formula: PQ(PQ('Profit'))

Quarter→ PQ Result
2025-Q335
2025-Q442
2026-Q147

FunctionWhen to use instead
PYWhen you need the previous year instead of the previous quarter.
SHIFTWhen you need a custom offset or want to shift along a specific time level.
QOQ_ABSWhen you need the absolute difference to the previous quarter, not just the shifted values.
Was this page helpful?