Skip to content

Measure (Data Warehouse)

A fact-level or calculated quantity in a dimensional model whose value is summarized within dimension contexts under declared grain, unit, and aggregation semantics.

Version
v2 · 2026-09-06 · History
Domain-specific #
2253
Origin domain
computer science
Subdomain
data warehousing
Aliases
Warehouse measure, OLAP measure, Fact measure, Numeric fact

Core Idea

In a data warehouse, a measure is a quantity associated with a fact at a declared grain or calculated from such quantities for analytic use. Measures answer questions such as how many, how much, how long, or at what rate after dimension members filter or group the relevant facts.

Correct meaning depends on aggregation semantics. Additive measures can be summed across every associated dimension; semi-additive measures only across some dimensions; non-additive measures such as ratios generally require recomputation from components. The grain, unit, currency, time basis, and aggregation rule are therefore part of the identity, not optional metadata.

Scope of Application

Measures appear in fact tables, OLAP cubes, semantic layers, dashboards, and analytic queries. Examples include order quantity, sales amount, cost, inventory balance, duration, headcount, exchange rate, and margin. Factless fact tables can still yield count measures by counting rows.

Transaction, periodic snapshot, and accumulating snapshot fact tables impose different grain and update patterns. The same numerical column can require different aggregation rules across time, product, organization, or currency dimensions.

Clarity

Name the business definition, grain, source event, formula, unit, currency conversion, null rule, dimensions across which addition is valid, and default aggregator. Distinguish stored base facts from calculated measures and distinguish aggregation-time context from row-level values.

Do not conflate measure additivity with Gray et al.'s distributive, algebraic, and holistic classification of aggregate functions.

Manages Complexity

Measures give heterogeneous fact rows a controlled route to comparable summaries. Explicit grain and additivity prevent double counting, invalid time summation, ratio averaging, and cross-currency totals. Central definitions also keep multiple dashboards from assigning incompatible meanings to the same business name.

Abstract Reasoning

  1. Declare the business process and atomic grain.
  2. Identify observable or derivable quantities at that grain.
  3. Specify units, currencies, time bases, and null semantics.
  4. Classify additivity across every dimension.
  5. Store additive components for ratios where feasible.
  6. Define calculated measures after aggregation at the correct context.
  7. Test rollups, filters, slowly changing dimensions, and currency conversion.
  8. Reconcile sample totals to trusted operational evidence.
  9. Publish lineage and semantic ownership.

Knowledge Transfer

The portable pattern is attach an aggregation contract to a quantity before allowing it to roll up across coordinates. It transfers to scientific data cubes, telemetry, accounting models, metric layers, and statistical summaries. The proposed immediate parent is Data Model.

Relationships to Other Abstractions

Local relationship map for Measure (Data Warehouse)Parents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Measure (DataWarehouse)DOMAINDomain-specific abstraction: Data Model — is a kind ofData ModelDOMAIN

Current abstraction Measure (Data Warehouse) Domain-specific

Parents (1) — more general patterns this builds on

  • Measure (Data Warehouse) is a kind of Data Model Domain-specific

    Data Model is the proposed immediate parent.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Measure (Data Warehouse) sits in a sparse region of the domain-specific corpus (97th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (1565 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-09-08