Dimension Tables & Conformed Dimensions
Build descriptive dimensions and share conformed dimensions across marts for consistent reporting.
In plain words
Discover natural identifiers and dirty attributes. Next, warehouse surrogate plus lineage map. Finally, publish certified meaning and reuse across marts.
Think of it like…
A dimension is the catalog card attached to many transaction receipts; conformed cards use the same numbering and wording across every department.
Where you’ve seen it
dim_customer has customer_sk, source_customer_id, segment, region, valid_from, valid_to, and is_current; facts store customer_sk, never a mutable email address.
Words you’ll hear
- Dimensions
- Relatively small descriptive tables that provide the who/what/where/when context for fact rows.
- Conformed
- A dimension whose keys and business meaning are intentionally shared by multiple fact processes.
- Attributes
- Descriptive values-status, region, brand, hierarchy-that drive filters, grouping, and display labels.
- Operational boundary
- Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records. Assign an internal surrogate key, keep a source natural-key mapping, define SCD behavior for each attribute, and certify one conformed date/product/customer contract for all consuming facts.
Visual diagram
Theory & deep dive
Dimensions: the working mechanism
Dimension tables hold descriptive attributes used to filter, group, and label facts, and conformed dimensions share compatible keys and definitions across multiple business processes.
Discover natural identifiers and dirty attributes. Warehouse surrogate plus lineage map, then overwrite, version, or fixed behavior; this exposes the state governed by Attributes.
dim_customer has customer_sk, source_customer_id, segment, region, valid_from, valid_to, and is_current; facts store customer_sk, never a mutable email address.
Dimension Tables & Conformed Dimensions: failure mode and production response
Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records.
Assign an internal surrogate key, keep a source natural-key mapping, define SCD behavior for each attribute, and certify one conformed date/product/customer contract for all consuming facts. Track Dimension cardinality as "small enough for keyed joins and BI hierarchies", and make Unknown member visible to the dataset owner.
How it works, step by step
Step 1 of 41. Profile source
Discover natural identifiers and dirty attributes. Dimension tables hold descriptive attributes used to filter, group, and label facts, and conformed dimensions share compatible keys and definitions across multiple business processes.
- Dimension cardinality
- small enough for keyed joins and BI hierarchies
- Conformed
- A dimension whose keys and business meaning are intentionally shared by multiple fact processes.
When to use it & trade-offs
What it is
Dimension tables hold descriptive attributes used to filter, group, and label facts, and conformed dimensions share compatible keys and definitions across multiple business processes. dim_customer has customer_sk, source_customer_id, segment, region, valid_from, valid_to, and is_current; facts store customer_sk, never a mutable email address.
Why it matters: Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records. Assign an internal surrogate key, keep a source natural-key mapping, define SCD behavior for each attribute, and certify one conformed date/product/customer contract for all consuming facts.
When to reach for it
- Build descriptive dimensions and share conformed dimensions across marts for consistent reporting.
- Choose Dimensions because it provides this capability: Relatively small descriptive tables that provide the who/what/where/when context for fact rows.
- Keep evidence for Dimension cardinality at "small enough for keyed joins and BI hierarchies" so the last production stage-Conform - publish certified meaning and reuse across marts-remains testable.
When to avoid or be careful
- Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records.
- Do not conflate Conformed with Dimensions. The second concept contributes different behavior: A dimension whose keys and business meaning are intentionally shared by multiple fact processes.
- Release only after this guardrail is in place: Assign an internal surrogate key, keep a source natural-key mapping, define SCD behavior for each attribute, and certify one conformed date/product/customer contract for all consuming facts.
Dimensions / Conformed / Attributes - roles, limits, and operating cost
Strengths: Relatively small descriptive tables that provide the who/what/where/when context for fact rows. Dimension tables hold descriptive attributes used to filter, group, and label facts, and conformed dimensions share compatible keys and definitions across multiple business processes.
Watch out: Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records.
Strengths: A dimension whose keys and business meaning are intentionally shared by multiple fact processes. In this workflow it supports: Choose history - overwrite, version, or fixed behavior.
Watch out: The operating cost is real: one explicit key for late or missing relationships.
Strengths: Descriptive values-status, region, brand, hierarchy-that drive filters, grouping, and display labels. Its output can be checked with Source mapping.
Watch out: Operating guardrail: Assign an internal surrogate key, keep a source natural-key mapping, define SCD behavior for each attribute, and certify one conformed date/product/customer contract for all consuming facts.
Interview signals & numbers to know
When this topic comes up
- “Where is the failure boundary for Dimensions, and how would Dimension cardinality reveal it?”
- “Why is Conformed distinct from this behavior: descriptive values-status, region, brand, hierarchy-that drive filters, grouping, and display labels?”
- Production clue: Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records.
- Design probe: Assign an internal surrogate key, keep a source natural-key mapping, define SCD behavior for each attribute, and certify one conformed date/product/customer contract for all consuming facts.
Benchmarks & rules of thumb
- Dimension cardinality
- small enough for keyed joins and BI hierarchies
- Unknown member
- one explicit key for late or missing relationships
- Source mapping
- natural identifier remains traceable to the surrogate
Common mistakes & follow-ups
Common interview mistakes
- Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records.
- Reporting success from a job exit code without checking Dimension cardinality and Unknown member.
- Treating this example as complete without replay, rollback, or access boundaries:
dim_customerhascustomer_sk,source_customer_id,segment,region,valid_from,valid_to, andis_current; facts storecustomer_sk, never a mutable email address.
Likely interviewer follow-ups
- How would you prove this contract instead of only checking that the command ran: Relatively small descriptive tables that provide the who/what/where/when context for fact rows.
- What does the recovery plan do when this occurs? Joining a source-system customer table directly creates inconsistent labels across marts, while a non-durable natural key can re-key historical facts when the source system merges or renumbers records.
- When is Dimensions insufficient for Unknown member, and what does adding Conformed cost in Dimension cardinality?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Dimension Tables & Conformed Dimensions with data engineer interview Q&A and hands-on practice.