REBOOK
Category: Dimensionality & hierarchies
Overview
Description | The REBOOK function can be used in all situations where value measures need to be "booked" to a different value in the same level. The FilterOperation allows further specifications on which level values should be rebooked. Use when you need to reclassify values from one level value to another within the same level. |
Syntax |
|
Parameters |
|
Limitations |
|
Explanations of FilterOperations:
Operator | Description |
|---|---|
| The measures of the level value equal to the |
| All measures of the level values not equal to the |
| All measures of the level values greater than the |
| All measures of the level values greater than or equal to the |
| All measures of the level values less than the |
| All measures of the level values less than or equal to the |
The
"OldValue"is the leading indicator. As the dimension list is sorted in a lexicographic order, "greater" targets all levels that start with a letter that alphabetically comes after the first letter of the"OldValue".
Examples
These examples show how values are moved from one segment to another within the same level, including list-based rebooking and filtered rebooking.
Input node: 'Revenue'
Year | Segment | Value |
|---|---|---|
2025 | MINI | 100 |
2025 | COMPACT | 50 |
2025 | LARGE | 10 |
Example 1
This example moves the value of one segment into another existing segment.
Formula: REBOOK('Revenue', "Segment", "MINI", "LARGE")
Year | Segment | → REBOOK Result |
|---|---|---|
2025 | MINI | 0 |
2025 | COMPACT | 50 |
2025 | LARGE | 110 |
With this formula, the value measure of 'MINI' is rebooked to 'LARGE'. As LARGE already had a revenue of '10', the rebooked value of '100' is added (=110).
Calculation:
Year | Segment | → REBOOK Result |
|---|---|---|
2025 | MINI | 100 (-100) |
2025 | COMPACT | 50 |
2025 | LARGE | 10 (+100) |
Example 2
This example rebooks a list of source values into one target value.
Formula: REBOOK('Revenue', "Segment", ["MINI", "COMPACT"], "LARGE")
Year | Segment | → REBOOK Result |
|---|---|---|
2025 | MINI | 0 |
2025 | COMPACT | 0 |
2025 | LARGE | 160 |
With this formula, the value measures of 'MINI' and 'COMPACT' are rebooked to 'LARGE'. The 'OldValue' measures are combined and add up to the measure of 'LARGE'.
Calculation:
Year | Segment | → REBOOK Result |
|---|---|---|
2025 | MINI | 100 (-100) |
2025 | COMPACT | 50 (-50) |
2025 | LARGE | 10 (+100+50) |
Example 3
This example uses the filter operation to rebook all values that do not match the source value.
Formula: REBOOK('Revenue', "Segment", "MINI", "LARGE", "NEQ")
Year | Segment | → REBOOK Result |
|---|---|---|
2025 | MINI | 100 |
2025 | COMPACT | 0 |
2025 | LARGE | 60 |
As the FilterOperation is set to "NEQ", all measures of the levels not equal to the "OldValue" (MINI) are rebooked to the "NewValue" (LARGE).
Calculation:
Year | Segment | → REBOOK Result |
|---|---|---|
2025 | MINI | 100 |
2025 | COMPACT | 50 (-50) |
2025 | LARGE | 10 (+50) |
Related Functions
Function | When to use instead |
|---|---|
When values should be split across multiple level values using weights instead of moved from one level value to another. | |
When values should be redistributed only within defined clusters rather than rebooked directly between level values. |