Automating negative inventory tracking to eliminate manual processes and accelerate month-end resolution timelines
In Oil and Gas operations, multiple companies often store product in shared plant tanks. When a plant consumes more product than delivered, it creates negative inventory positions for individual companies, causing cost accounting and financial reporting issues. The inventory control team's primary responsibility is to resolve these positions and implement processes to mitigate inventory risk—the potential for losses and inefficiencies affecting scheduling and downstream departments.
The solution integrates multiple systems to create an end-to-end automated workflow, eliminating manual data handling and enabling real-time reporting capabilities.
System architecture showing data flow from SAP extraction through Power BI visualization and automated distribution
Implemented Power Automate scripts to extract negative inventory data from SAP on a scheduled basis. The automation queries multiple SAP tables including material master data, plant inventory positions, and ownership records. Data is extracted in a standardized format and automatically saved to a designated SharePoint folder, eliminating manual exports.
Configured SharePoint as the central repository for all extracted data and supporting Excel source files. This approach provides version control, accessibility for all team members, and serves as the single source of truth. The folder structure mirrors the data organization, making it intuitive for analysts to locate specific datasets.
Built a comprehensive Power BI data model connecting SAP extracts and Excel source files. Created relationships between dimension tables (plants, materials, legal entities) and fact tables (inventory positions, historical trends). Implemented DAX measures for calculations including total negative inventory values, item counts, and deadline tracking.
Designed interactive dashboards with two primary views: a Plant Owner View for external stakeholders to monitor their negative inventory positions, and an Internal Checks view for inventory control analysts to track resolution progress. Implemented drill-down capabilities by plant, material, and workday for detailed analysis. Added an integrated help request form that automatically routes submissions to the appropriate inventory control analyst based on legal entity using Power Automate, ensuring timely response and accountability.
The Power BI data model serves as the central tracking database, integrating multiple data sources and enabling comprehensive analysis of negative inventory positions across all plants and legal entities.
Click image to view full size | Comprehensive data model showing relationships between SAP extracts, dimension tables, and fact tables for negative inventory tracking
Direct connection to SAP tables for real-time inventory positions, material master data, and plant ownership information. Automated extraction eliminates manual exports.
Integration with supporting Excel files stored in SharePoint including cost centers, workday guides, and sorting tables for enhanced analysis capabilities.
Consolidated fact tables tracking current negative inventory positions, historical closing inventory, and workday-specific snapshots for trend analysis.
Dimension tables for plants, materials, legal entities, and time periods enabling flexible filtering and drill-down analysis across all business dimensions.
The solution provides two complementary dashboard views: an external-facing Plant Owner View for stakeholder reporting and an internal Negative Inventory Checks view for team analysis and resolution tracking.
Real-time countdown displays days remaining until production/refinery and non-production deadlines. Visual indicators help prioritize resolution efforts based on urgency and plant type.
Navigate through workdays (-2, -1, 1, 2, 3, 4, Post-MIGO) to track inventory positions across the month-end process. Compare current positions against historical data for pattern identification.
Power Automate script distributes reports to plant owners by legal entity via email. Ensures timely communication and accountability for negative inventory resolution.
Track closing inventory positions from previous months to identify recurring issues. Supports root cause analysis and process improvement initiatives to prevent future occurrences.
The automated negative inventory tracking solution transformed the inventory control team's month-end process, delivering significant time savings and enabling analysts to focus on value-added resolution activities rather than manual data compilation.
Centralized Data Storage is Essential: SharePoint as the single source of truth eliminated version control issues and ensured all team members accessed consistent data. This proved critical for maintaining report accuracy across multiple analysts.
Automation Requires Initial Time Investment: Building the Power Automate scripts and Power BI data model required upfront effort, but the monthly time savings quickly justified the investment. Documenting the automation process ensured maintainability.
User Feedback Drives Continuous Improvement: Regular check-ins with inventory control analysts revealed opportunities for enhancement, such as adding workday navigation and historical trend tracking, making the dashboard more valuable for day-to-day operations.
Change Management Matters: Transitioning from manual Excel processes to automated Power BI reporting required training sessions and documentation. Creating a user guide with instructions on dashboard navigation and interpretation supported smooth adoption.
I'm always happy to discuss process improvements, automation projects, or just connect about data analytics work. Feel free to reach out or check out my other projects.
Disclaimer: This case study represents work completed as an employee of Suncor Energy. All data, screenshots, and metrics have been anonymized or recreated for demonstration purposes. No confidential or proprietary information is disclosed. The views and presentation are my own and do not necessarily represent those of Suncor Energy.