PQ
PQ('Node')
The PQ function shifts the input node one quarter into the future while retaining all other dimensions.
Use this function when you need last quarter’s values alongside current data for quarter-over-quarter comparisons.
Parameters
- NodeNode referenceRequired
- 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'
| Quarter | Value |
|---|---|
| 2025-Q1 | 35 |
| 2025-Q2 | 42 |
| 2025-Q3 | 47 |
Formula: PQ('Profit')
| Quarter | PQ Result |
|---|---|
| 2025-Q2 | 35 |
| 2025-Q3 | 42 |
| 2025-Q4 | 47 |
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'
| Quarter | Value |
|---|---|
| 2025-Q1 | 35 |
| 2025-Q2 | 42 |
| 2025-Q3 | 47 |
Formula: PQ(PQ('Profit'))
| Quarter | PQ Result |
|---|---|
| 2025-Q3 | 35 |
| 2025-Q4 | 42 |
| 2026-Q1 | 47 |