https://github.com/faisal-khann/vendor_impact_analysis
Vendor Impact Analysis is the process of evaluating and measuring how well suppliers or vendors contribute to a company's success in terms of product quality, cost-effectiveness, timely delivery, reliability, and overall value.
https://github.com/faisal-khann/vendor_impact_analysis
data-visualization git powerbi python sql sqllite3
Last synced: about 2 months ago
JSON representation
Vendor Impact Analysis is the process of evaluating and measuring how well suppliers or vendors contribute to a company's success in terms of product quality, cost-effectiveness, timely delivery, reliability, and overall value.
- Host: GitHub
- URL: https://github.com/faisal-khann/vendor_impact_analysis
- Owner: Faisal-khann
- License: mit
- Created: 2025-07-26T21:45:07.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T07:31:48.000Z (2 months ago)
- Last Synced: 2025-08-10T09:16:30.869Z (2 months ago)
- Topics: data-visualization, git, powerbi, python, sql, sqllite3
- Language: Jupyter Notebook
- Homepage:
- Size: 14.4 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π¦ Vendor impact Analysis - Inventory Management
Analyzing vendor efficiency and profitability to support strategic purchasing and inventory decisions using **SQL**, **Python**, and **Power BI**.
---
## π Table of Contents
- [Overview](#Overview)
- [Project Workflow](#Project-Workflow)
- [Business Problem](#business-problem)
- [Dataset](#dataset)
- [Tools & Technologies](#tools--technologies)
- [Project Structure](#Project-Structure)
- [Data Pipeline Overview](#Data-Pipeline-Overview)
- [Dashboard Preview](#Dashboard-Preview)
- [Key Outcomes](#Key-Outcomes)
- [Business Insights](#Business-Insights)
- [How to Run This Project](#How-to-Run-This-Project)
- [Author & Contact](#author--contact)
---
## OverviewThis project evaluates vendor impact (overall performance) and retail inventory dynamics to drive strategic insights for purchasing, pricing, and inventory optimization. A complete data pipeline was built using SQL for ETL, Python for analysis and hypothesis testing, and Power BI for visualization.
Through comprehensive data analysis using Python and SQL on a retail dataset, the project evaluates key metrics such as gross profit, profit margins, stock turnover, freight costs, and sales-to-purchase ratios.
By identifying top-performing vendors and brands, as well as underperforming products with high margins, the analysis supports strategic decisions related to procurement, pricing, and promotions.The insights derived also highlight how bulk purchasing can significantly reduce unit costs, contributing to improved profit margins. Additionally, the project reveals the extent of capital locked in unsold inventory and identifies vendors with low stock turnover, enabling businesses to take corrective actions.
---
## Project Workflow
## Business Problem
Companies often face losses due to poor inventory practices, inefficient pricing strategies, and vendor over-dependence. This analysis aims to:
- Identify underperforming brands needing promotional or pricing adjustments.
- Determine top vendors contributing to sales and gross profit.
- Analyze the cost-benefit of bulk purchasing.
- Assess inventory turnover to improve efficiency and reduce holding costs.
- Investigate profitability variance between high- and low-performing vendors## Tools & Technologies
| Tool | Purpose |
|-------------|----------------------------------|
| **Python** | Data analysis & scripting |
| **Pandas** | Data manipulation |
| **SQL** | Data extraction from SQLite |
| **Power BI**| Dashboard creation |
| **Jupyter** | EDA & visualization |
| **Matplotlib/Seaborn** | Visual analytics |---
## Dataset
- Multiple CSV files located in /data/ folder (sales, vendors, inventory)
- Summary table created from ingested data and used for analysis
---## Project Structure
```
vendor-performance-analysis/
β
βββ README.md
βββ .gitignore
βββ requirements.txt
βββ Vendor Performance Report.pdf
β
βββ notebooks/ # Jupyter notebooks
β βββ ingesting-logs.ipynb
βββ sql-powered_data_analysis.ipynb
β βββ vendor_impact_analysis.ipynb
β
βββ scripts/ # Python scripts for ingestion and processing
β βββ ingestion_db.py
β βββ get_vendor_summary.py
β
βββ dashboard/ # Power BI dashboard file
β βββ vendor_performance_dashboard.pbix
```---
## Data Pipeline Overview
```mermaid
graph TD;
A[Define Business Problem] --> B[Explore DB with SQL];
B --> C[Clean & Merge Tables];
C --> D[Create Aggregated Table];
D --> E[Save to SQLite DB];
D --> F[Load in Jupyter];
F --> G[Perform EDA];
G --> H[Create Power BI Dashboard];
H --> I[Report Insights];
```---
## Key Outcomes
- π **Cleaned & Valid Dataset**
- Removed inconsistencies like negative profit margins, gross profit and zero sales.
- Final dataset contains **8,565 valid records** ready for analysis.- π **Top Vendors & Brands Identified**
- **Top Vendors by Sales**:
- DIAGEO NORTH AMERICA INC β `$67.99M`
- MARTIGNETTI COMPANIES β `$39.33M`
- PERNOD RICARD USA β `$32.06M`
- **Top Brands by Sales**:
- Jack Daniels No 7 Black β `$7.96M`
- Titoβs Handmade Vodka β `$7.40M`
- Grey Goose Vodka β `$7.21M`
- π **Underperforming High-Margin Brands**
- Brands like *Santa Rita Organic* and *Debauchery Pnt Nr* had **high margins but low sales**.
- Recommend strategic promotions or pricing updates.- π **Vendor Purchase Contribution**
- **Top 10 vendors contribute 65.69%** of total purchases.
- Demonstrated using Pareto and Donut charts.- π **Bulk Purchasing Reduces Unit Price**
- Small Orders: `$39.06` per unit
- Large Orders: `$10.78` per unit
- Bulk purchases reduce cost by **~72%**, boosting profitability.- π **Inventory Issues Detected**
- Vendors like *ALISA CARR BEVERAGES* have **very low stock turnover (<1)**.
- Total capital locked in unsold inventory: **`$2.71M`**- π **Profit Margin Confidence Intervals**
- **Top-performing vendors**: Mean Margin `31.17%`, CI: `(30.74%, 31.61%)`
- **Low-performing vendors**: Mean Margin `41.55%`, CI: `(40.48%, 42.62%)`
- Indicates low performers rely on **premium pricing**, not volume.---
## Business Insights
- **Sales & Purchase Alignment**
- Nearly perfect correlation (0.999) between purchase and sales quantity β **Efficient inventory turnover**- **Freight Cost Variability**
- Wide cost range suggests **logistical inefficiencies** or bulk shipment variability.- **Stock Turnover β Profitability**
- High turnover doesnβt always translate to higher profit β Possible discounting or low-margin sales.- **Skewed Distributions Detected**
- `GrossProfit`, `ProfitMargin`, `StockTurnover`, and `SalesToPurchaseRatio` had extreme outliers.
- Addressed via filtering, capping, and visual diagnostics.- **Consistent Data Handling**
- Applied statistical thresholds and visualizations to ensure clean, actionable data for analysis and reporting.
---
## Dashboard Preview`Below is a preview of the Power BI dashboard showing key vendor KPIs:`
> π Live-Dashboard: [`Inventory_Management.pbix`](https://app.powerbi.com/view?r=eyJrIjoiMDkzMGFiNGUtODMxZS00M2RhLTk2MDgtN2JkZWQzZjc2OGMzIiwidCI6IjQyYjUxMzUzLTZhMzctNDA5Zi1hMmZlLTc3OGE5YmUzMTllNCJ9)
![]()
![]()
---
## How to Run This Project
1. Clone the repository:
git clone https://github.com/yourusername/vendor-impact-analysis.git2. Load the CSVs and ingest into database:
python scripts/ingestion_db.py
3. Create vendor summary table:
python scripts/get_vendor_summary.py
4. Open and Run Notebooks
β `notebooks/sql-powered_data_analysis.ipynb`
β `notebooks/vendor_impact_analysis.ipynb`
6. Open Power BI Dashboard:Dashboard/Inventory_Management.pbix
---
## Author & Contact
**Faisal Khan**
*Data Analyst*For any questions, collaboration opportunities, or project-related inquiries, feel free to reach out:
- π§ [Email](mailto:thisside.faisalkhan@example.com)
- πΌ [LinkedIn](http://www.linkedin.com/in/faisal-khan-332b882bb)Letβs connect and build something impactful!
---
> Made with β€οΈ using Jupyter Notebook, Python, SQL & Power BI