📦 Resource excel

Rail Fleet Scheduling Gantt Builder (Excel + Power Query)

The Rail Fleet Scheduling Gantt Builder is an Excel-based decision-support tool enhanced with Power Query and dynamic charting that visualizes rail asset utilization, train movements, and maintenance windows over time using interactive Gantt-style timelines. It integrates operational data (e.g., train IDs, origin/destination, load/unload times, locomotive availability, maintenance cycles) to generate conflict-free, capacity-aware schedules aligned with mine logistics constraints. Built for scalability and auditability, it enables planners to simulate scenarios, identify bottlenecks, and optimize fleet dispatch without requiring VBA or external software.

📖 Overview

At its core, the Rail Fleet Scheduling Gantt Builder leverages Excel’s native capabilities—structured tables, XLOOKUP, SEQUENCE, and dynamic array functions—combined with Power Query’s robust ETL (Extract-Transform-Load) engine to ingest, clean, and harmonize heterogeneous scheduling inputs (e.g., CSV dispatch logs, ERP-maintained rolling stock registers, shift calendars, and rail network topology metadata). The model operates on a time-sliced granularity (typically 15-min or 1-hr intervals), mapping each rail unit (locomotive or wagon set) to discrete temporal blocks representing movement legs, loading/unloading dwell, empty repositioning, and scheduled maintenance. A critical design principle is constraint-aware sequencing: dependencies such as track section availability, crew shift boundaries, safety clearance windows, and interlocking logic are encoded via calculated columns and validation rules—not hard-coded macros—ensuring traceability and regulatory compliance. Visualization relies on stacked bar charts driven by helper columns that convert start/end datetime pairs into horizontal bar segments, with conditional formatting and slicers enabling real-time filtering by asset type, mine pit, commodity, or priority tier. Furthermore, Power Query supports version-controlled refresh pipelines: new schedule revisions can be ingested as delta files, automatically reconciling changes against baseline plans while flagging conflicts (e.g., double-booking of a shunter or overlapping block occupancy) via diagnostic queries.

📑 Key Components

1 Power Query ETL Pipeline
2 Dynamic Gantt Chart Engine (Excel Chart + Helper Tables)
3 Constraint Validation Layer (Time-Window Logic & Resource Conflict Detection)

🎯 Applications

  • Optimizing haul cycle frequency across multi-pit mining operations
  • Simulating impact of locomotive downtime or track rehabilitation on production throughput
  • Aligning rail fleet deployment with downstream processing plant maintenance windows

📐 Key Formulas

Gantt Bar Start Position

=XLOOKUP([@TrainID],Schedule[TrainID],Schedule[StartTime],"N/A")-MIN(Schedule[StartTime])

Normalizes absolute start datetime to relative position (days since earliest schedule start) for horizontal bar alignment in chart axis

Resource Conflict Flag

=SUMPRODUCT(([@TrainID]<>Schedule[TrainID]) * ([@StartTime]<Schedule[EndTime]) * ([@EndTime]>Schedule[StartTime]) * (Schedule[TrackSection]=[@TrackSection]))>0

Detects temporal and spatial overlap on same track section with other trains

Utilization Ratio

=SUMIFS(Schedule[Duration_hrs],Schedule[TrainID],[@TrainID])/24/7

Computes weekly utilization percentage per locomotive, accounting for scheduled maintenance and idle time

🔗 Related Concepts

Mine Logistics Chain Optimization Railway Block Signalling Logic Finite Capacity Scheduling Digital Twin for Transport Assets Power Query M Language

📚 References

#rail logistics #power query #gantt chart #mine planning #resource scheduling