Reference Updated April 8, 2026

ROLLUP_TO

Category: Dimensionality & hierarchies

Overview

The ROLLUP_TO function rolls up a node to match the level-dimensionality of another node. All levels that exist in the first node but not in the second are removed, and their values are aggregated.

Use this function when you want to automatically match one node’s dimensionality to another without manually specifying which levels to keep.

Syntax

ROLLUP_TO('Node1', 'Node2')

Example usage: ROLLUP_TO('Profit', 'Budget')

Parameters

ParameterDescriptionTypeRequired
Node1The input node to be rolled up, specified in single quotes (e.g. 'Detail')Node referenceYes
Node2The target node whose level-dimensionality defines the output shape, specified in single quotes (e.g. 'Summary')Node referenceYes

Output Shape

AspectBehavior
DimensionalityReduced to only the levels present in Node2
ValuesOnly the values of Node1 are used; Node2 only determines the shape
Row countReduced. Values are aggregated across the removed levels

Watch Out

  • Node2 cannot contain levels that are not in Node1. Every level in Node2 must also exist in Node1.
  • Node1 and Node2 cannot have the same set of levels. Node2 must have fewer levels than Node1, otherwise there is nothing to roll up.
  • The formula can feature only two inputs.
  • The values of Node2 are ignored. Only its dimensional structure matters.

Example

Input node: Profit

Product GroupProductYearMonthValue
CarsModel T20252025-0111
CarsModel T20252025-035
MotorcyclesV-Twin20262026-027
Motorcycles101 Scout20262026-0119

Target node: Budget Budget data only has Product Group and Year.

Product GroupYearValue
Cars202550
Motorcycles202670

Match dimensionality of a target node

You want to compare actual quantities against budget, but the budget node only has Product Group and Year, no Product or Month detail.

Formula: ROLLUP_TO('Profit', 'Budget')

Product GroupYear→ ROLLUP_TO Result
Cars202511 + 5 = 16
Motorcycles20267 + 19 = 26

Product and Month are removed because they don’t exist in Budget. The values of Budget (50, 70) are not used, only its dimensional structure.


FunctionWhen to use instead
ROLLUPWhen you know exactly which levels to keep.
DROPLEVELWhen you know which levels to remove.
EXPANDWhen you need to add levels instead of aggregating.
Was this page helpful?