Exploration · 03
Star schema explorer
The semantic model, one fact at a time. Each fact sits at the center of its dimensions with its grain stated up front. Switch to the constellation view to see the facts share their dimensions.
solid: active one-to-many
dashed: inactive (USERELATIONSHIP)
dotted: many-to-many
1 / * : cardinality at each end
What the picture argues
- Grain first. The banner is the most important thing on the page. If you can't say the grain in one sentence, the fact isn't ready.
- One date table, many roles. Sales relates to Date twice. Only one relationship can be active; the ship-date measure turns the other on with
USERELATIONSHIP. The alternative, a second date table, is fine when users need both dates on the same axis at once. - Coarser facts are honest about it. Budget is month by category by region, so it reaches Product on category through a many-to-many relationship. The dotted line is a warning label, not a mistake.
- Conformed dimensions glow in the constellation view: Date, Product and Warehouse serve more than one fact, which is what lets a report put sales and inventory side by side.