DELTA_REL
AVAILABLE FROM 6.13
Description | Calculates the relative difference between consecutive values within the selected dimension. |
Syntax | DELTA_REL('Node', [“Dimension”, [“FirstValueBehavior”]]) |
Parameter |
|
Limitations |
|
Example
In contrast to YOY_REL and related relative functions, the growth will be calculated by using the absolute former value as relative base: (currentValue - formerValue) / absolute(formerValue).
This means for example: The relative growth from -2 to -10 is -400% as (-10 - (-2)) / abs(-2) = (-8 / 2) = -4.
Input node =
Year | Month | Product | Measure |
|---|---|---|---|
2025 | 2025-11 | A | 1 |
2025 | 2025-11 | B | 2 |
2026 | 2026-04 | A | 20 |
2026 | 2026-05 | B | -10 |
DELTA_REL(‘Input node’) = DELTA_REL( ‘Input node’ , "Time" , "SKIP_FIRST") =
Year | Month | Product | Measure |
|---|---|---|---|
2026 | 2026-04 | A | 19 (= (20 - 1) / ABS(1) ) |
2026 | 2026-05 | B | -6 (= (-10 - 2) / ABS(2) ) |
DELTA_REL(‘Input node’, "Time" , "FIRST_AS_ZERO") =
Year | Month | Product | Measure |
|---|---|---|---|
2025 | 2025-11 | A | 0 |
2025 | 2025-11 | B | 0 |
2026 | 2026-04 | A | 19 |
2026 | 2026-05 | B | -6 |