Data mart

On this page 7

A data mart is a subject-oriented collection of analytical data that serves one business area, such as sales, finance or marketing, and is modeled so that its users can query it quickly without navigating the whole enterprise data estate. In data engineering, the data mart is the last, consumer-facing layer of the analytical stack: it takes cleaned and integrated data and reshapes it into facts, dimensions and metrics that match how a specific department thinks.

Data marts are usually smaller and narrower than a data warehouse, contain mostly aggregated or curated data, and are owned by a clearly defined group of consumers. They can be physically separate databases, separate schemas inside a warehouse or lakehouse, or simply a set of governed tables and views.

How a data mart is built and fed

A data mart is populated by pipelines that extract, transform and load data from upstream systems, most often from a central warehouse rather than directly from operational applications. The transformation step applies business rules, conformed dimensions and metric definitions, so that a figure such as net revenue means the same thing in every report built on the mart.

Most marts follow dimensional modeling, the approach popularized by Ralph Kimball. A fact table records measurable events at a declared grain, for example one row per order line, and dimension tables describe the who, what, where and when of those events. The resulting star schema keeps joins shallow and predictable, which suits business intelligence tools and ad hoc analysis.

The typical components of a mart are summarized below.

ComponentRoleExample in a sales mart
Fact tableStores measures at a fixed grainOrder lines with quantity and amount
Dimension tableDescribes context for factsCustomer, product, date, store
Conformed dimensionShared definition across martsOne calendar used by sales and finance
Aggregate tablePrecomputed summary for speedMonthly revenue by region
Semantic definitionsNamed metrics and filtersGross margin, active customer
Core components of a dimensional data mart

Dependent, independent and hybrid data marts

Data marts are classified by where their data comes from, and the distinction has large consequences for consistency. A dependent data mart draws from an enterprise warehouse, an independent data mart is loaded straight from source systems, and a hybrid data mart combines both.

TypeData sourceMain advantageMain risk
DependentCentral data warehouseConsistent, reconciled numbersWaits on warehouse delivery
IndependentOperational systems directlyFast to build for one teamConflicting metrics across teams
HybridWarehouse plus extra sourcesFlexibility for new dataComplex lineage and governance
Types of data marts by data source

Experienced teams treat independent marts with caution. When several departments build their own marts from the same sources, each applies slightly different rules, and leadership ends up with several versions of the truth. This pattern, often called data mart sprawl, was a central argument for the enterprise warehouse in the first place.

Data mart compared with warehouse, lake and lakehouse

The data mart differs from neighboring concepts mainly in scope and audience: it is built for a defined group of consumers, whereas a warehouse or lake serves the whole organization. The architectural debate between Bill Inmon and Ralph Kimball revolves around this point, with Inmon placing marts downstream of a normalized warehouse and Kimball building the warehouse as a bus of conformed marts.

ConceptScopeTypical data statePrimary users
Data martOne business domainModeled, aggregatedAnalysts in one department
Data warehouseWhole enterpriseIntegrated, historicalMany teams and data engineers
Data lakeWhole enterpriseRaw and semi-structuredData engineers and scientists
LakehouseWhole enterpriseRaw to curated layersMixed analytical and ML users
Operational data storeCurrent operationsNear real-time, little historyOperational reporting
How a data mart relates to other analytical stores

In a lakehouse that follows the medallion architecture, the role of the data mart is often played by the gold layer, where business-ready tables are organized by domain. In a data mesh, a domain team may publish a mart-like data product, but with explicit ownership, contracts and service levels attached.

Designing a data mart in practice

Good mart design starts from business questions, not source tables. The team identifies the decisions the mart must support, declares the grain of each fact table, and agrees on metric definitions with the business owner before writing transformation code.

  1. Define the consumers and questions the mart will answer.
  2. Choose the grain of each fact table and document it.
  3. Reuse conformed dimensions from the warehouse wherever they exist.
  4. Implement transformations as tested code, for example with dbt models and data tests.
  5. Set freshness and quality targets, such as daily refresh by a fixed hour.
  6. Publish metric definitions in a semantic layer or catalog.

The choice of physical form depends on scale and tooling, as the next table shows.

SituationRecommended formReason
Cloud warehouse already in placeDedicated schema of tables and viewsNo extra infrastructure
Strict access separation requiredSeparate database or accountClear security boundary
Dashboards need sub-second responseAggregate tables or OLAP cubesPrecomputed results
Small team with spreadsheetsCurated views over the warehouseLow maintenance
Choosing the physical form of a data mart

Limitations and common mistakes with data marts

The most serious risk of a data mart is metric divergence: two marts compute the same indicator differently and the organization loses trust in its reports. The second is hidden duplication, where the same logic is copied into several pipelines and each copy drifts over time.

  • Undeclared grain causes double counting when facts are joined to the wrong dimension level.
  • Overly wide marts that try to serve every team become a second, poorly governed warehouse.
  • Missing slowly changing dimension logic rewrites history when a customer moves region.
  • No ownership leaves broken refreshes unnoticed for days.

A common misconception is that a data mart is obsolete in the cloud era. The physical separation has become less necessary, but the logical idea of a curated, domain-specific model remains central to how analytics teams deliver trustworthy numbers.

Put simply

A data mart is like a department’s own shelf in a large library. The main library, the data warehouse, holds everything the company knows. The sales team, however, needs only a few books, arranged the way they look for them.

So someone picks the right material, organizes it, and labels it clearly. The sales team can then find its answers quickly, and because the books come from the same library, the numbers match what other teams see. The key point is simple: a data mart is a focused, ready-to-use slice of company data for one group of people.

In practice

A regional retail chain with about 120 stores keeps all transactions in a cloud data warehouse. Store managers complain that the weekly sales dashboard takes over a minute to load and that their figures never match the finance report.

The data engineering team builds a dependent sales data mart: one fact table at the grain of a receipt line, conformed product, store and date dimensions shared with finance, and a daily aggregate table by store and category. Metric definitions such as net sales and basket size are documented and tested. After the change, the dashboard loads in under three seconds, and the weekly reconciliation between sales and finance shows no unexplained differences for the first time in two years.