← All projects

Retail · Data modelling · 2026

RetailCo: Sales Analytics with SCD Type 6

A Power BI star schema with a Type 6 slowly changing product dimension, so category reporting is correct both 'as it was' and 'as it is'.

Power BIDAXSQLExcelPowerPoint
RetailCo: Sales Analytics with SCD Type 6 cover
£1,380validation sales
36.6%gross margin
46.0%online share
23 / 23acceptance tests passed

The question

Products moved between categories, and the source product master was not updated, so category revenue was misreported. The model keeps full history and current values on every row.

What I built

  • Power BI star schema with date, product (SCD Type 6), customer and store dimensions
  • 19-tab Excel pack with live formulas and acceptance tests
  • 16-slide executive briefing with five board decisions

Key insights

  1. A stale product master put 38% of revenue in the wrong category; the versioned model files every sale under the category valid at the time.
  2. Online orders carry bigger baskets and better margin, and make up 46% of sales.
  3. One flagship store books 54% of sales, mostly from online orders, which raises an attribution decision for the board.
  4. The model reconciles to the penny and passes all 23 acceptance tests.

Gallery

Downloads