Lecture: Lecture 03 - Data Warehouse Conceptual and Logical Design

Core idea

The Dimensional Fact Model expresses facts, dimensions, measures and grouping paths before table implementation. Hierarchies assert functional dependencies from detailed members to broader levels, so a valid grouping path must reflect a real business relationship with unambiguous member identities.

Explanation and examples

A fact models relevant events such as sales, shipments or complaints. Dimensions supply coordinates; measures describe numerical properties. The source SALE example includes product, shop and date, with quantity, amount, customer count and unit price. Being listed as a measure does not permit unrestricted summation.

Added hierarchy: Shop -> City -> Region -> Country. Each child determines one parent under the modeled relationship, while a parent can have many children. A month called only March cannot determine a unique year; March 2025 and March 2026 need distinct identities when that dependency is used.

The source uses DFM by Golfarelli and Rizzi and compares it with ER. Its statement about ER inadequacy is the motivation for an analytical notation, not proof that relational systems cannot store the information.

The later Week -> Month example requires a stated business-calendar assignment because ordinary weeks can span months. Drawing a hierarchy does not establish the dependency automatically.

Hierarchy dependencies can remain meaningful in a flattened star dimension without a separate table per level.

Related: Dimensions Measures and Fact Grain, DFM Optional Relationships Descriptive Attributes and Convergence.

Source

Elena Baralis, Data warehouse design, Politecnico di Torino, DBMG, local DSTBD_3-DWprogConcLog-EN.pdf, 47 PDF pages. References use PDF page order. The source credits modeling material to Golfarelli and Rizzi, Data warehouse, teoria e pratica della progettazione, McGraw Hill, 2006. Original PDF and figures remain local under the copyright notice. Examples and qualifications marked as added are study explanations. Relevant PDF pages: 11-14.

Exam practice and transfer

Worked scenario

A warehouse designer is deciding how to represent dimensional fact model and hierarchy dependencies for a university reporting system. State the intended grain and business meaning first, then trace one example row or query and explain why the representation preserves the required analysis.

Concrete example

Product belongs to a category, and category belongs to a department. If one product can belong to two departments at once, the supposed hierarchy dependency is not a simple function and needs a different design.

Retrieval questions

  • Explain Dimensional Fact Model and Hierarchy Dependencies in your own words, then identify the problem it prevents in a real data project.
  • Give a small example that would violate the concept, and explain how the violation would distort an analysis or query.
  • Compare this concept with the nearest related idea in the note and state when each should be used.

These prompts are added study practice. They require explanation and transfer rather than copying a definition.