Skip to content
Back to challenges
Conformed Dimensions and the Bus MatrixConcept Challengeintermediate25 min

Conform a date dimension

Share one date dimension between an orders fact and a shipments fact so order-to-ship timing is comparable.

How this preview works
Preview this problem before signing in. Sign in to save progress and submit work.

Concept

conformed-dimensions

The primary modeling idea this problem reinforces.

Requirements

3

Business needs the model must satisfy.

Scenario

A retailer runs two processes (ordering and shipping) and wants order-to-ship timing analyzed on one consistent calendar. The date dimension already exists; the two process facts do not.

Why this matters

Conformed dimensions are what make cross-process analysis possible. If ordering and shipping each carry their own raw dates, the calendars drift and timing comparisons stop being trustworthy.

Requirements
  • Add an orders fact and a shipments fact, each at its own event grain.
  • Reference the existing date dimension from both facts.
  • Declare surrogate-key foreign keys and N:1 relationships from each fact to the date dimension.
Read-only starter workspace
Inspect the authored starting ERD, then open the workspace to edit and run the checks. Saving your progress needs a free account.

Template

Conformed date dimension starter

The model users start from in the full workspace.

Entities

1

Seeded tables visible in the public preview.

Dialect

postgresql

Generated SQL target for this starter model.

Mini Map

This preview is read-only. Open the workspace to edit and verify; saving needs a free account.

Open workspace

Try the question first.

The discussion has other people's approaches and solutions. Give it a real attempt before you read them.