Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Retail Sales Analytics (SalesMind Project)


📌 Business Problem

Retail businesses generate large volumes of transactional data, but often lack structured insights into:

  • Revenue performance and growth trends
  • Product and category profitability
  • Customer purchasing behavior
  • Regional sales distribution

Without proper analytics, decision-making becomes reactive rather than data-driven.


🎯 Objective

Build a complete analytics solution to:

  • Track revenue, profit, and key KPIs
  • Identify top-performing products and categories
  • Analyze customer purchasing patterns
  • Support strategic business decisions

🧠 Solution Overview

This project delivers an end-to-end analytics workflow, combining:

  • SQL for data transformation and modeling
  • Python for data analysis and validation
  • Power BI for interactive dashboards and business reporting

🧱 Data Model

A star schema was designed to support analytical queries:

Fact Table:

  • Sales

Dimension Tables:

  • Customers
  • Products
  • Categories
  • Dates

This structure enables efficient aggregation and scalable reporting.


🗄️ Example SQL Query

SELECT 
    category,
    SUM(revenue) AS total_revenue,
    SUM(profit) AS total_profit
FROM sales s
JOIN products p ON s.product_id = p.product_id
GROUP BY category
ORDER BY total_revenue DESC;

📊 Key KPIs

  • Total Revenue
  • Total Profit
  • Profit Margin
  • Sales Growth
  • Top Products & Categories

💡 Key Business Insights

  • Top Categories: A small number of categories generate the majority of revenue
  • Profit Variability: Some high-revenue products have low margins
  • Customer Behavior: Repeat customers contribute significantly to revenue
  • Seasonality: Sales show clear patterns across time periods

🎯 Business Impact

This analysis enables:

  • Identification of high-margin products
  • Better pricing and promotion strategies
  • Improved inventory planning
  • Data-driven decision-making

📈 Dashboard Overview

The Power BI dashboard provides:

  • Executive KPI summary
  • Revenue and profit trends
  • Product and category performance
  • Customer insights

📂 Project Structure

├── dashboards/
├── images/
├── notebooks/
├── sql/
├── README.md

🚀 How to Run

  1. Load dataset into MySQL
  2. Execute SQL queries from /sql
  3. Run Python analysis in /notebooks
  4. Open Power BI dashboard in /dashboards

🛠️ Tech Stack

  • SQL (MySQL)
  • Python (Pandas)
  • Power BI (DAX, Data Modeling)
  • Git & GitHub

📌 Future Improvements

  • Add automated data validation checks
  • Implement advanced SQL (window functions)
  • Deploy dashboard using web-based tools
  • Expand analysis with predictive modeling

⭐ This project demonstrates how data can be transformed into actionable business insights.

About

Retail sales analytics project using SQL and Power BI to track revenue, profit, margins, and product performance through a star schema model.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors