One medallion, two engines: PySpark and Python
Four source systems land as raw extracts, move through bronze, silver and gold under one orchestrator, and pass a quality gate before Power BI reads them. The core logic runs in Python notebooks and again in PySpark / Spark SQL, and a parity gate proves both produce identical tables.
Swipe the diagram sideways to see all of it.
Four layers, each with a contract the next one relies on.
Four systems, synthetic
A timesheet SaaS, an issue tracker, an Entra-shaped user directory and a CRM. They land as JSON extracts in Files/landing, the way Copy jobs would.
- timesheets · users
- worklogs · users
- directory users
- accounts · deliverables · assignments
Raw and append-only
One generic notebook loads every new file as strings, with lineage on every row, and records each extract in a manifest.
- bronze_<system>_<entity> × 9
- ops_ingested_files
Canonical and replayable
Both time sources in one schema, rebuilt from bronze each run. User history is SCD Type 2 in one Delta MERGE; an identity map links every login to a person. Built in Python notebooks and in PySpark / Spark SQL.
- silver_worklogs
- silver_user_history
- silver_user_identities
- silver_project_registry
Star schema for Power BI
Lean facts, conformed dimensions with unknown members, project keys that never change, and marts that feed report tiles directly. The fact attribution also runs in Spark SQL.
- fact_worklog · fact_assignment_month
- dim_user · dim_project · dim_deliverable · dim_date
- mart_sold_vs_utilized · mart_coverage_month
- mart_nonloggers · audit_unmatched_workers
A week of runs
One backfill, then a daily incremental run per day. Each step is logged to ops_run_log; all six steps succeeded every time.
| Run date | Mode | Seconds |
|---|---|---|
| 2026-09-30 | full (backfill from Jan 1) | 30.5 |
| 2026-10-01 | incremental | 17.3 |
| 2026-10-02 | incremental | 19.5 |
| 2026-10-03 | incremental | 16.0 |
| 2026-10-04 | incremental | 16.8 |
| 2026-10-05 | incremental | 16.8 |
| 2026-10-06 | incremental | 16.2 |
| 2026-10-07 | incremental | 17.0 |