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
📑 Key Components
🎯 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