offdataai
Data WarehouseTemplatesKimballData Modeling

Data Warehouse Mapping Document Template (Free CSV) and Bus Matrix Template

Free downloadable source-to-target mapping document and Kimball bus matrix templates for data warehouse projects, with what each column means and how to fill them in.

ooffdataai3 min read

Two documents keep a data warehouse project honest: the source-to-target mapping document, which says where every target column comes from and how it is transformed, and the bus matrix, which shows which business processes share which dimensions. Both are free to download below as CSV files that open in Excel or Google Sheets.

The source-to-target mapping document

A mapping document (also called an STTM, data mapping specification or S2T) has one row per target column. The template uses these columns:

ColumnWhat to write
target_table, target_column, target_typeThe warehouse table, column and data type
nullable, is_keyY/N, and PK, FK or BK (business key)
source_system, source_table, source_column, source_typeWhere the value comes from
transformation_ruleThe logic in plain words: trims, lookups, currency conversion, SCD handling
default_valueWhat to load when the source is missing, such as Unknown or -1
data_quality_checkThe test that must pass: unique, not null, in an allowed list
piiWhether the column holds personal data and needs masking
owner, notesWho answers questions about it, and anything else

The sample rows show a Type 2 customer dimension and an order line fact, including an unknown-member default for late-arriving customers.

Tips for mapping documents

  • State the grain of every fact table in its first row. See what is grain in data modeling.
  • Write rules a developer can implement without asking. "Clean the name" is not a rule; "trim whitespace, keep original case" is.
  • Map the keys first: business keys, then surrogate keys and foreign key lookups. See surrogate keys vs natural keys.
  • Flag personal data while mapping, not at the end.
  • Keep it versioned next to the code, or generate it from the model so it can't drift.

The bus matrix template

The Kimball enterprise bus matrix has one row per business process and one column per conformed dimension, with an X where the process uses that dimension. The template adds the fact table, grain, priority and owner for each process.

Read across a row to see a fact table's dimensions; read down a column to see every process that depends on a dimension, which tells you which dimensions to build and agree first. The method is explained step by step in conformed dimensions and the bus matrix, and the wider approach in the Kimball methodology guide.

Other data model templates

If you would rather start from a finished model than an empty spreadsheet, offdataai has 174 data model templates across retail, finance, healthcare, SaaS, manufacturing and more, in Kimball, Data Vault 2.0 and 3NF. Each one opens on the canvas and generates DDL for your warehouse, a dbt project and documentation that includes the column-level mapping, so the mapping document comes from the model rather than being typed by hand.

Frequently asked questions

What is a data mapping document in data warehousing?

A specification with one row per target column, stating its source, transformation rule, data type, default and quality checks. Developers build the pipelines from it and testers check against it.

What should a source-to-target mapping include?

At minimum: target table and column, data type, source system, table and column, transformation rule, and key information. Defaults, quality checks, personal data flags and owners make it far more useful.

Is there a free bus matrix template?

Yes, the CSV above. It opens in Excel or Google Sheets and includes example processes for a retail business.

Try offdataai

Ship a warehouse from a single conversation.

Describe your domain. Get ERDs, DDL, dbt projects, and seed data for every major cloud warehouse.

Start building

Keep reading

All posts →