โ† Back to Portfolio

Project 6 ยท Data Engineering + BI

E-commerce Data Warehouse and Power BI Reporting

A PostgreSQL star-schema warehouse with ETL scripts, quality checks, and a Power BI semantic/report layer for churn, sales, and experiment analytics.

PostgreSQLSQL ETLPower BIDAXPytest

Business Problem & Objectives

  • Unify sales, churn, and experimentation data into one analytics-ready warehouse model.
  • Enforce data quality and referential integrity before BI consumption.
  • Expose business metrics in Power BI with reusable model relationships and measures.

Data Sources (Repository Snapshot)

  • sales_raw.csv: 30 rows, 13 columns, 2023-01-05 to 2023-02-10.
  • churn_raw.csv: 30 rows, 11 columns.
  • ab_test_raw.csv: 30 rows, 8 columns.
  • Warehouse SQL also supports larger benchmark inputs documented in project README.

Warehouse & Modeling Workflow

  • Create schemas/tables with 01_schema_ddl.sql.
  • Load raw data into staging.* tables, then transform into dw.dim_* and dw.fact_*.
  • Run quality checks for row counts, FK integrity, business rules, and aggregate sanity.
  • Map model tables into Power BI semantic layer with relationships and DAX metrics.

Documented Outputs

  • Star schema with dim_customer, dim_product, dim_date, dim_channel, dim_experiment and three fact tables.
  • Automated tests in tests/test_warehouse.py (24 checks documented in README).
  • Power BI report configuration includes churn KPI cards, trend charts, and segment slicers.

Architecture and BI Visual Preview

E-commerce warehouse star schema diagram
Star schema diagram included in the project diagrams folder.
Power BI report layout from report.json (Churn Overview) Visualization reflects the report structure parsed from repository artifacts, not a screenshot export.
Illustrative composition of the configured Churn Overview report section from Ecommerce.Report/report.json.