← Back to Glossary

OLAP cube

An OLAP cube is a multidimensional data structure that pre-aggregates measures across combinations of dimensions, letting users slice, dice, drill down, and roll up data quickly without recomputing aggregations each time.

Overview

An OLAP cube organizes data along multiple dimensions (time, product, region, customer) with measures (revenue, quantity) at their intersections — conceptually a multidimensional array, though most implementations don't literally store an N-dimensional array. Classic OLAP cube operations include:

  • Slice: fix one dimension to a single value (e.g., only 2026 data).
  • Dice: filter to a sub-cube across multiple dimensions at once.
  • Drill down / roll up: move between levels of a dimension's hierarchy (year → quarter → month, or region → country → city).
  • Pivot: rotate the cube to view it from a different dimensional axis.

Traditional OLAP engines (MOLAP) pre-compute and store aggregations at every level of every dimension hierarchy so these operations return instantly. ROLAP engines skip pre-computation and query a relational star schema directly, computing aggregations on demand. HOLAP mixes the two.

Related terms

FAQS

The core operations are slice (fix one dimension), dice (filter across several dimensions), drill down and roll up (move between levels of a hierarchy, like year to month), and pivot (rotate the view to a different dimensional axis).

A star schema queried with GROUP BY, ROLLUP, or GROUPING SETS achieves the same slice/dice/drill-down/roll-up results as an OLAP cube, computed on demand. Dedicated MOLAP cube engines pre-compute aggregations for instant response, which matters more at very large scale or for interactive BI tools than for ad hoc SQL analysis.