This project uses dbt to build a robust, tested, and documented data pipeline for a retail company. The goal is to transform raw operational data into a clean, analytics-ready data warehouse to track key supply chain and inventory metrics, ultimately enabling data-driven decision-making.
A retail company operating multiple stores faces challenges with inventory management—frequent stockouts, excess inventory holding costs, and delayed supplier deliveries impact sales and customer satisfaction. This project aims to leverage analytics to optimize inventory levels, improve demand forecasting, and increase supply chain efficiency.
- Data Transformation: dbt (Data Build Tool)
- Data Warehouse: (e.g., Snowflake, BigQuery, PostgreSQL)
- Data Visualization: (e.g., Power BI, Tableau)
- Version Control: Git / GitHub
- The models in this project are built to support the following KPIs:
- Inventory Turnover Rate: Measures how often inventory is sold and replaced over a period.
- Stockout Rate: Percentage of orders that could not be fulfilled due to insufficient stock.
- Dead Stock Percentage: The share of inventory that has not been sold over a defined period.
- Supplier Lead Time: The average time between placing an order with a supplier and receiving the goods.
- On-Time Delivery Rate: Proportion of customer orders delivered on or before the promised date.
- Forecast Accuracy: A measure of how closely demand forecasts match actual sales.
The dbt project follows a layered modeling approach to ensure scalability and maintainability:
- models/staging: Lightly transformed models that clean and standardize raw data from the sources.
- models/intermediate: Complex transformations, joins, and business logic are implemented here.
- models/marts: Final, analytics-ready tables organized into dimensions (dim_) and facts (fct_). These models power the BI dashboard.
- git clone https://github.com/Drprincerajput/supplychain-analytics-pipeline.git
- cd supplychain-analytics-pipeline
- Set up your dbt profile: Configure your profiles.yml file to connect to your data warehouse.
dbt deps
dbt deps
dbt deps
This project uses dbt docs to generate a complete documentation site with a data dictionary and an interactive dependency graph.
To view the documentation, run the following commands and navigate to http://127.0.0.1:8080 in your browser:
dbt deps

