Domain 4 β€” Module 7 of 8 88%
26 of 27 overall
Domain 4: Analytics on Azure Free ⏱ ~12 min read

Data Models in Power BI

Great dashboards start with a great data model. Star schemas, relationships, measures, and dimensions β€” the foundation of Power BI reporting.

What is a data model?

Simple explanation

A data model is the blueprint telling Power BI how tables connect.

Three spreadsheets: Sales, Products, Stores. The model maps β€œProductID in Sales matches ProductID in Products.” Without this map, Power BI can’t combine data.

Good model = fast, accurate reports. Bad model = wrong numbers.

Star schema

The most common pattern: a central fact table surrounded by dimension tables.

  • Fact table (centre): Measurable events β€” numeric values and foreign keys
  • Dimension tables (points): Descriptive attributes for filtering

Priya’s FreshMart model:

  • Sales (fact): DateKey, StoreKey, ProductKey, Quantity, Revenue, Cost
  • Date (dim): DateKey, Month, Quarter, Year
  • Product (dim): ProductKey, Name, Category, Brand
  • Store (dim): StoreKey, StoreName, City, Region
Fact vs dimension tables
FeatureFact TablesDimension Tables
ContainsMeasurable eventsDescriptive attributes
Row countVery large (millions+)Small (thousands)
Key columnsForeign keys + measuresPrimary key + descriptions
ExamplesSales, Orders, DeliveriesDate, Product, Store

Measures vs calculated columns

MeasuresCalculated Columns
WhenQuery time (dynamic)Data refresh (stored)
ExampleTotal Revenue = SUM(Sales[Revenue])Profit = Revenue - Cost
Best forAggregations with filtersRow-level calculations

Hierarchies

Drill-down paths: Year β†’ Quarter β†’ Month β†’ Day. Users click to drill from yearly to monthly.

Exam tip: data model concepts
  • β€œCentral table with numeric measures” β†’ Fact table
  • β€œDescriptive attributes for filtering” β†’ Dimension table
  • β€œYear β†’ Quarter β†’ Month” β†’ Hierarchy
  • β€œSUM that changes with filters” β†’ Measure
  • β€œRecommended schema” β†’ Star schema

Flashcards

Question

What is a star schema?

Click or press Enter to reveal answer

Question

Fact table vs dimension table?

Click or press Enter to reveal answer

Question

What is a measure in Power BI?

Click or press Enter to reveal answer

Knowledge check

Knowledge Check

Priya's Sales table has DateKey, StoreKey, ProductKey, Quantity, Revenue. What type?

Knowledge Check

Total revenue changes when a user selects a region filter. This uses:

Next up: Choosing the Right Visualization β€” which chart tells which story?