# QOQ_ABS
URL: https://docs.valsight.ai/qoq-abs/
Description: Returns the absolute quarter-over-quarter growth by calculating the difference between the current and previous quarter. Missing quarters can be skipped or treated as zero, depending on the selected behavior.
**Category:** [Compare periods](/compare-periods/)

## Overview

The **QOQ\_ABS** function **returns the absolute growth for each quarter compared to the previous quarter** (quarter-over-quarter).

Use this function when you need the absolute difference between consecutive quarters.

## Syntax

`QOQ_ABS('Node' [, "MissingValueBehaviour"])`

## Parameters

| Parameter                 | Description                                              | Type           | Required | Default            |
| ------------------------- | -------------------------------------------------------- | -------------- | -------- | ------------------ |
| **Node**                  | Input node, specified in single quotes (e.g. `'Profit'`) | Node reference | Yes      | --                 |
| **MissingValueBehaviour** | How missing values are treated.                          | Keyword        | No       | `"IGNORE_MISSING"` |

**MissingValueBehaviour options:**

* `"IGNORE_MISSING"`: Missing rows are skipped. This is the default.
* `"MISSING_AS_ZERO"`: Missing rows are treated as 0.

## Examples

### Default: ignoring missing values

This example shows QOQ\_ABS with the default behavior. The missing quarter 2026-Q1 is skipped and 2026-Q2 is not calculated.

**Input node:** `'Profit'`

| Quarter | Value |
| ------- | ----- |
| 2025-Q1 | 200   |
| 2025-Q2 | 300   |
| 2025-Q3 | 450   |
| 2025-Q4 | 500   |
| 2026-Q2 | 100   |

**Formula:** `QOQ_ABS('Profit')`

**Equivalent to:** `QOQ_ABS('Profit', "IGNORE_MISSING")`

| Quarter | QOQ\_ABS Result |
| ------- | --------------- |
| 2025-Q2 | 100             |
| 2025-Q3 | 150             |
| 2025-Q4 | 50              |

### Treating missing values as zero

With MISSING\_AS\_ZERO, gaps are filled with 0, producing results for every quarter including those without input data.

**Formula:** `QOQ_ABS('Profit', "MISSING_AS_ZERO")`

| Quarter | QOQ\_ABS Result |
| ------- | --------------- |
| 2025-Q1 | 200             |
| 2025-Q2 | 100             |
| 2025-Q3 | 150             |
| 2025-Q4 | 50              |
| 2026-Q1 | -500            |
| 2026-Q2 | 100             |
| 2026-Q3 | -100            |

## Related

| Function                  | When to use instead                                                                          |
| ------------------------- | -------------------------------------------------------------------------------------------- |
| [QOQ\_REL](/qoq-rel/)     | When you need the percentage change quarter-over-quarter instead of the absolute difference. |
| [YOY\_ABS](/yoy-abs/)     | When you need the absolute difference on a yearly basis instead of quarterly.                |
| [DELTA\_ABS](/delta-abs/) | When you need the absolute change along any dimension, not just time.                        |
