Skip to content

latikaray/Vendor_Performance_Analysis-sql-python-powerbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Vendor Performance Analysis – Retail Inventory & Sales

An end-to-end data analytics project that evaluates vendor efficiency, purchasing strategies, inventory turnover, and profitability using SQL, Python, and Power BI to support data-driven retail business decisions.

SQL Python Pandas Matplotlib Seaborn SciPy Power BI


πŸ“Œ Project Overview

Vendor performance plays a crucial role in maintaining a profitable and efficient retail supply chain. Businesses must continuously monitor vendor contributions, purchasing costs, inventory movement, and profit margins to make informed procurement decisions.

This project performs an end-to-end Vendor Performance Analysis using retail sales, inventory, and purchasing data. The complete analytical pipeline includes SQL-based ETL, Python for data cleaning, exploratory data analysis (EDA), statistical testing, and Power BI dashboards for interactive business reporting.

The objective is to uncover purchasing trends, identify underperforming vendors and brands, optimize inventory management, and provide actionable business recommendations.


🎯 Problem Statement

This project aims to answer important business questions related to vendor performance and inventory management, including:

  • πŸ“¦ Which vendors contribute the highest sales and profits?
  • πŸ’° Does bulk purchasing significantly reduce procurement costs?
  • πŸ“‰ Which brands require promotional or pricing adjustments?
  • πŸͺ How much inventory remains unsold?
  • πŸ“Š Which vendors generate the highest profit margins?
  • πŸ“ˆ Are there statistically significant differences in vendor profitability?
  • ⚠️ Is the business overly dependent on a small number of vendors?

πŸ’Ό Business Questions Answered

This project investigates several business questions that help procurement teams and retail managers improve operational efficiency.

Business Question Objective
🏒 Which vendors contribute the most purchases? Identify major vendors driving procurement.
πŸ’° Does buying in bulk reduce procurement costs? Measure cost savings achieved through large purchase quantities.
πŸ“¦ Which brands require promotional strategies? Detect brands with low sales but strong profit margins.
πŸ“‰ How much inventory remains unsold? Identify slow-moving inventory affecting profitability.
πŸ“Š Which vendors deliver the highest profit margins? Compare vendor-level profitability.
πŸ“ˆ Are vendor profit margins statistically different? Validate differences using hypothesis testing.
⚠️ Is procurement concentrated among a few vendors? Measure vendor dependency and business risk.

🎯 Expected Outcomes

By completing this analysis, the project aims to:

  • Improve vendor selection strategies.
  • Optimize procurement decisions.
  • Reduce inventory holding costs.
  • Identify opportunities for promotional campaigns.
  • Detect procurement risks due to vendor dependency.
  • Demonstrate practical SQL, Python, and Power BI skills through a real-world business case.

✨ Project Highlights

  • πŸ“Š Built a complete retail analytics pipeline using SQL, Python, and Power BI.
  • 🧹 Performed extensive data cleaning and preprocessing.
  • πŸ—„οΈ Designed SQL queries for ETL and vendor summary generation.
  • πŸ“ˆ Conducted Exploratory Data Analysis (EDA).
  • πŸ“‰ Performed correlation analysis between business variables.
  • πŸ§ͺ Applied statistical hypothesis testing using SciPy.
  • πŸ“Š Built an interactive Power BI dashboard for business reporting.
  • πŸ’‘ Generated actionable recommendations for purchasing and inventory optimization.

πŸ› οΈ Tech Stack

  • SQL
  • Python
  • Pandas
  • Matplotlib
  • Seaborn
  • SciPy
  • Power BI
  • Jupyter Notebook
  • Git & GitHub

πŸ“‚ Project Structure

vendor-performance-analysis/
β”‚
β”œβ”€β”€ πŸ“ dashboard/
β”‚   └── vendor_performance.pbix
β”‚
β”œβ”€β”€ πŸ“ images/
β”‚   β”œβ”€β”€ Dashboard.png
β”‚   └── pipeline.png
β”‚
β”œβ”€β”€ πŸ“ notebooks/
β”‚   β”œβ”€β”€ Exploratory Data Analysis.ipynb
β”‚   └── Vendor Performance Analysis.ipynb
β”‚
β”œβ”€β”€ πŸ“ scripts/
β”‚   β”œβ”€β”€ ingestion_db.py
β”‚   └── get_vendor_summary.py
β”‚
β”œβ”€β”€ πŸ“„ LICENSE
β”œβ”€β”€ πŸ“„ README.md
└── πŸ“„ Vendor Performance Report.pdf

πŸ“Š Dataset Information

The project uses multiple retail datasets containing purchasing, inventory, and sales information.

The datasets include information such as:

  • Vendor Details
  • Purchase Transactions
  • Sales Transactions
  • Inventory Levels
  • Purchase Quantity
  • Sales Quantity
  • Freight Costs
  • Gross Profit
  • Profit Margin
  • Purchase Price
  • Sales Price

After ingestion, a consolidated Vendor Summary Table is generated for analysis.


πŸ”„ Project Pipeline

Project Pipeline


πŸ” Data Cleaning & Preparation

The following preprocessing steps were performed:

  • Removed transactions where:
    • Gross Profit ≀ 0
    • Profit Margin ≀ 0
    • Sales Quantity = 0
  • Converted columns into appropriate data types.
  • Merged multiple datasets.
  • Created vendor-level summary tables.
  • Detected and handled outliers.
  • Validated missing and inconsistent values.

πŸ“Š Exploratory Data Analysis (EDA)

The analysis focused on understanding retail purchasing and inventory behavior.

Analyses Performed

  • Vendor contribution analysis
  • Brand performance analysis
  • Inventory turnover analysis
  • Bulk purchasing analysis
  • Profitability analysis
  • Freight cost analysis
  • Correlation analysis
  • Outlier detection
  • Statistical hypothesis testing

πŸ“ˆ Visualizations

The project includes various visualizations such as:

  • πŸ“Š Bar Charts
  • πŸ“ˆ Line Charts
  • πŸ“‰ Scatter Plots
  • πŸ“¦ Box Plots
  • πŸ”₯ Correlation Heatmaps
  • πŸ“Š Vendor Performance Dashboard (Power BI)

πŸ’‘ Key Insights

🏒 Vendor Dependency

  • The Top 10 vendors account for 65.69% of total purchases, indicating a high dependency on a small group of suppliers.

πŸ’° Bulk Purchasing

  • Bulk purchasing reduces procurement cost by approximately 72% per unit, demonstrating significant cost-saving opportunities.

πŸ“¦ Inventory Turnover

  • Around $2.71 Million worth of inventory remains unsold, highlighting slow-moving stock and inventory management challenges.

πŸ“‰ Brand Performance

  • 198 brands have low sales but high profit margins, making them strong candidates for promotional campaigns.

πŸ“Š Correlation Analysis

  • Purchase Quantity and Sales Quantity show an almost perfect positive correlation (0.999).
  • Purchase Price has a weak relationship with overall profit.
  • Profit Margin has a slight negative relationship with Sales Price.

πŸ§ͺ Hypothesis Testing

Statistical analysis confirmed a significant difference in vendor profit margins, suggesting distinct pricing and purchasing strategies among vendor groups.


πŸ“Š Dashboard

Vendor Dashboard

The interactive Power BI dashboard provides insights into:

  • Vendor-wise Sales
  • Vendor Profitability
  • Inventory Turnover
  • Bulk Purchase Savings
  • Purchase Distribution
  • Performance Heatmaps
  • Procurement KPIs

πŸš€ Getting Started

Clone the Repository

git clone https://github.com/yourusername/vendor-performance-analysis.git

Install Dependencies

pip install -r requirements.txt

Run Data Ingestion

python scripts/ingestion_db.py

Generate Vendor Summary

python scripts/get_vendor_summary.py

Launch Jupyter Notebook

jupyter notebook

Open:

notebooks/exploratory_data_analysis.ipynb

and

notebooks/vendor_performance_analysis.ipynb

Finally, open:

dashboard/vendor_performance_dashboard.pbix

to explore the interactive dashboard.


πŸ“Œ Dataset Availability

The datasets used in this project are not included in this repository due to sharing restrictions.

If you'd like to reproduce the analysis, explore the Power BI dashboard, or use this project for learning purposes, feel free to reach out to me. I'll be happy to share the dataset (where applicable) and guide you through the project setup.

πŸ“§ Email: latikar109@gmail.com
πŸ’Ό LinkedIn: https://www.linkedin.com/in/latika-ray

Note: The repository includes the complete analysis pipeline, notebooks, scripts, and dashboard. Only the raw data files are excluded.


πŸ“š Skills Demonstrated

  • SQL ETL
  • Data Cleaning
  • Data Preprocessing
  • Exploratory Data Analysis (EDA)
  • Business Analytics
  • Data Visualization
  • Correlation Analysis
  • Hypothesis Testing
  • Statistical Analysis
  • Power BI Dashboard Development
  • Inventory Analytics
  • Procurement Analytics
  • Business Insight Generation

πŸ’Ό Business Recommendations

Based on the analysis, the following recommendations are proposed:

  • Diversify the vendor base to reduce procurement risk.
  • Increase bulk purchasing where cost savings are significant.
  • Promote high-margin brands with low sales.
  • Develop strategies to clear slow-moving inventory.
  • Continuously monitor vendor performance using interactive dashboards.
  • Optimize purchasing strategies based on vendor profitability.

πŸ‘©β€πŸ’» Author

Latika Manoj Ray

Aspiring Data Analyst | Python | SQL | Power BI | Data Visualization | Machine Learning


⭐ If you found this project useful, consider giving the repository a Star!

About

An end-to-end data analytics project that evaluates vendor efficiency, purchasing strategies, inventory turnover, and profitability using SQL, Python, and Power BI to support data-driven retail business decisions.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors