WOW_REL
Category: Compare periods
Overview
Description | Returns the relative growth for each week compared to the previous week (week-over-week). Use this when you need the percentage change between consecutive weeks. |
Syntax |
|
Parameters |
|
Examples
Default: ignoring missing values
This example shows WOW_REL with the default behavior. The missing weeks are skipped and no result is produced for them.
Input node: Profit
Week | Value |
|---|---|
2025-W01 | 200 |
2025-W02 | 300 |
2025-W03 | 450 |
2025-W04 | 500 |
2026-W06 | 100 |
Formula: WOW_REL('Profit') = WOW_REL('Profit', "IGNORE_MISSING")
Week | → WOW_REL Result |
|---|---|
2025-W02 | (300 - 200) / 200 = 0.5 |
2025-W03 | 150 / 300 = 0.5 |
2025-W04 | 50 / 450 = 0.11 |
Treating missing values as zero
With MISSING_AS_ZERO, gaps are filled with 0, producing results for every week including those without input data.
Formula: WOW_REL('Profit', "MISSING_AS_ZERO")
Week | → WOW_REL Result |
|---|---|
2025-W02 | (300 - 200) / 200 = 0.5 |
2025-W03 | 150 / 300 = 0.5 |
2025-W04 | 50 / 450 = 0.11 |
2025-W04 | (0 - 500) / 500 = -1 |
| (100 - 0) / 0 = division by zero results in entry not being present in result |
2026-W07 | (0 - 100) / 100 = -1 |