Foundations

Elements of the Data Cube

Four words explain every report: fact, dimension, hierarchy and measure.

Real-world analogy

The slip that says “450”

A number alone tells you nothing. Watch one bill slip gain meaning, then become part of an answer.

  1. Fact. The truth about something that happened. Mostly a number, and meaningless alone.
  2. Dimension. Labels give it meaning: when, where, what and who. This is relatively permanent master data.
  3. Hierarchy. Each dimension has levels, so you can look at the same sale from near or far.
  4. Measure. A calculation over the facts in view returns one scalar value.
  5. The punch line. All four words in one sentence.
Explain more

Fact

The truth about something that happened. Mostly numbers, recorded transaction by transaction. Meaningless without labels.

Dimension

Anything we want to measure using facts. Relatively permanent, with hardened edges. This is master data: mostly labels, and it gives facts their meaning.

Hierarchy

The different levels of a dimension, such as Year › Quarter › Month or Country › State › City.

Measure

Any calculated scalar value. A fact is stored; a measure is worked out for whatever is in view.

Real-world analogy

One scale, many dimensions

A single measuring tape measures a box’s length, width and depth. A single measure can do the same for your business.

📏 The same tape every time

📏 Total Sales measures

inter+legere

Latin: to choose between. That is intelligence.

  1. Length. The tape measures one direction.
  2. Width. Same tape, another direction.
  3. Depth. Same tape, a third direction.
  4. Customers. Total Sales finds the good customers.
  5. Products. The same measure finds the good products.
  6. Branches. The same measure finds the good branches.
  7. Choose. Comparing lets us decide: data-driven decision making.

Try the punch line

Pick a dimension, a level of its hierarchy and a measure. The same 12 made-up sales answer every combination.

Dimension
Hierarchy level
Measure