Use formulas and logic to calculate values directly in Cube.
Common formulas and supported operations
Guide to formulas rollup logic
Recalculate a formula or tag
Create alternative rollups with Tags
When should I use a dimension rollup, tag, or formula?