Skip to content

πŸ“Š End-to-end Vendor Performance Analysis project using Python (ETL & EDA), SQL (data modeling), and Power BI (Dashboards) to analyze vendor profitability, cost efficiency, and inventory optimization β€” turning raw data into actionable business insights.

Notifications You must be signed in to change notification settings

Harsh-Belekar/Vender-Performance-Analysis-Python-SQL-PowerBI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏒 Vendor Performance Analysis (Python + SQL + PowerBI)

Tool Language Database Focus Type Dashboard 1 Dashboard 2

πŸ“Œ Overview

This project focuses on analyzing vendor performance, cost efficiency, and inventory optimization using real-world retail and wholesale data.
It combines Python (for data ingestion, transformation, and analysis) with Power BI (for interactive visualization) to deliver actionable insights for management.

The objective is to identify top-performing vendors, inefficient cost patterns, and profitability opportunities to enhance strategic decision-making.


🎯 Business Problem

Efficient inventory and vendor management are critical for business profitability.
This project aims to:

  • Identify underperforming brands requiring promotional or pricing adjustments.
  • Determine top vendors contributing to sales and gross profit.
  • Analyze bulk purchasing impact on unit cost and profitability.
  • Assess inventory turnover to reduce holding costs and improve efficiency.
  • Investigate profitability variance between high- and low-performing vendors.

βš™οΈ Project Workflow

πŸ”Ή 1. Data Ingestion

  • Imported six raw datasets into SQLite using a Python ETL pipeline:
    • purchases.csv
    • purchase_prices.csv
    • vendor_invoices.csv
    • begin_inventory.csv
    • end_inventory.csv
    • sales.csv
  • Built robust scripts with logging and SQLAlchemy for data reliability and traceability.

πŸ”Ή 2. Data Transformation

  • Created a consolidated table vendor_sales_summary using SQL joins and feature engineering.
  • Added calculated fields for analysis:
    • GrossProfit = TotalSalesDollars - TotalPurchaseDollars
    • ProfitMargin = (GrossProfit / TotalSalesDollars) * 100
    • StockTurnover = TotalSalesQuantity / TotalPurchaseQuantity
    • SalesToPurchaseRatio = TotalSalesDollars / TotalPurchaseDollars

πŸ”Ή 3. Exploratory Data Analysis (EDA)

  • Conducted in-depth EDA using Pandas, Matplotlib, and Seaborn to identify trends and vendor performance patterns.
  • The notebook helped finalize the dataset for dashboard creation.

πŸ”Ή 4. Data Visualization in Power BI

  • Built two interactive Power BI dashboards to summarize KPIs and insights for management-level decision-making.

πŸ“Š Power BI Dashboards

🧭 Dashboard 1 – Executive Summary (Vendor Performance)

πŸ“Έ Preview:
Executive Summary Dashboard

πŸ” Key Insights:

  • Total Sales: πŸ’° $93.1M

  • Total Purchases: πŸ›’ $73.6M

  • Gross Profit: πŸ“ˆ $19.5M

  • Top Vendors by Sales & Profit:

    • πŸ₯‡ DIAGEO NORTH AMERICA INC

    • πŸ₯ˆ MARTIGNETTI COMPANIES

    • πŸ₯‰ PERNOD RICARD USA

  • Freight Cost: 3.6% of Total Sales β€” relatively stable among high-performing vendors.

  • Profit Margin Trends: Top vendors maintain >25% profit margins.

  • Stock Turnover Ratio: Efficient vendors average ~1.2x inventory cycles per period.


🧾 Dashboard 2 – Cost Efficiency & Inventory

πŸ“Έ Preview:
Cost Efficiency & Inventory Dashboard

πŸ” Key Insights:

  • Vendors with high freight-to-sales ratios (>5%) show declining profit margins.

  • Bulk purchasing led to an average unit cost reduction of 72%, proving scale efficiency.

  • Underperforming brands identified with low Sales-to-Purchase ratios (<1.0).

  • Inventory Efficiency: Vendors maintaining 1.0–1.5 stock turnover ratios show optimal stock management.

  • Highlighted vendor-wise profitability variance for strategic negotiations.


πŸ“ˆ Overall Analytical Insights

  • DIAGEO NORTH AMERICA INC and MARTIGNETTI COMPANIES dominate both sales and profit metrics.

  • Freight cost significantly affects vendor profitability, especially for heavy-volume shipments.

  • Vendors with balanced Sales-to-Purchase ratios and high Stock Turnover yield the best ROI.

  • Identified opportunities for pricing optimization and vendor diversification.


πŸ› οΈ Tools & Technologies

Tool / Technology Purpose
Python Data ingestion, transformation, and cleaning using Pandas
SQLite Database for structured storage and SQL-based aggregation
Power BI Dashboard creation, DAX calculations, and visualization
Power Query Data cleaning and shaping for BI integration
Pandas Data manipulation, merging, and EDA in Python
Matplotlib & Seaborn Exploratory data visualization and insights
SQLAlchemy Python ORM used for database connectivity and ingestion
Logging Module Tracks execution steps and records data pipeline events
Jupyter Notebook Used for data exploration and performance analysis

πŸ“ Repository Highlights

  • End-to-end company-level vendor analytics project
  • Combines Python, SQL, and Power BI
  • Includes full data pipeline, EDA, and BI dashboards

πŸ—‚οΈ Project Structure


πŸ“¦ Vendor_Performance_Analysis
β”‚
β”œβ”€β”€ Vendor_Performance_Analysis.pdf     # Project report containing 2 dashboards
β”œβ”€β”€ Vendor_Performance_Report.pdf       # Final Project Report
β”œβ”€β”€ README.md                           # Project documentation
β”‚
β”œβ”€β”€ data/
β”‚ └── vendor_sales_summary.csv          # Final cleaned dataset used in analysis & Power BI
β”‚
β”œβ”€β”€ scripts/
β”‚ β”œβ”€β”€ ingestion_db.py                   # Data ingestion and database creation
β”‚ └── get_vendor_summary.py             # SQL joins and vendor summary generation
β”‚
β”œβ”€β”€ notebook/
β”‚ β”œβ”€β”€ Exploratory Data Analysis.ipynb   # Initial data exploration
β”‚ └── Vendor Performance Analysis.ipynb # Main analytical notebook
β”‚
β”œβ”€β”€ dashboard/
β”‚ └── Vendor_Performance_Analysis.pbix  # Power BI dashboard file
β”‚
└── images/
β”œβ”€β”€ Executive_summary.png               # Dashboard 1 preview
└── Cost_Efficiency_and_Inventory.png   # Dashboard 2 preview

🏁 Final Conclusion

This project demonstrates how to combine data engineering, analytics, and business intelligence for decision-making at a company level.

βœ… Identified top and underperforming vendors
βœ… Analyzed freight cost efficiency and stock turnover
βœ… Improved understanding of sales-to-purchase profitability
βœ… Delivered executive-level dashboards for actionable insights


πŸš€ Future Enhancements

  • Automate data refresh from live databases
  • Build predictive models for vendor performance forecasting
  • Integrate Power BI service for real-time dashboard updates

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

πŸ‘€ Harsh Belekar
πŸ“ Data Analyst | Python | SQL | Power BI | Excel | Data Visualization
πŸ“¬ LinkedIn | πŸ”— GitHub

πŸ“§ [email protected]


⭐ If you liked this project, don’t forget to star the repo and connect with me on LinkedIn!

About

πŸ“Š End-to-end Vendor Performance Analysis project using Python (ETL & EDA), SQL (data modeling), and Power BI (Dashboards) to analyze vendor profitability, cost efficiency, and inventory optimization β€” turning raw data into actionable business insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published