Transforming imperfect site data into a unified production, maintenance and safety dashboard.
Mine site data was spread across messy Excel files with no single source of truth. I built a pipeline that ingests, cleans and models the data, then brings it together in one Power BI dashboard.
Production, maintenance and HSE data arrived as separate Excel files with inconsistent equipment IDs, mixed date formats, duplicate rows and missing shifts.
↓ Ingest
All Excel sheets are loaded into the raw layer unchanged, tagged with their source file and sheet.
The same records after cleaning in dbt. Every cell that was wrong in the raw data is shaded green: IDs standardised, names matched to the roster, dates and units fixed, duplicates removed, and new columns such as downtime hours and failed component worked out.
↓ Model
Cleaned tables are reshaped into fact and dimension marts in dbt, ready for reporting.
The clean data is organised into a star schema: three fact tables (loads, downtime and HSE) linked to shared date, equipment and people dimensions. Every report can be filtered the same way, and totals like tonnes are never double counted.
↓ Visualise
The marts feed a Power BI report with KPIs calculated once in DAX and reused across every page.
One report covering production, maintenance and safety, filtered by the same date, crew and equipment slicers.