Skip to content

Progati00/SQL-Sales-Data-Analysis-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š SQL Sales Data Analysis & Power BI Dashboard

This project focuses on performing Sales Data Analysis using MySQL and visualizing key insights through an interactive Power BI dashboard. It leverages real-world sales data to uncover business trends, customer behavior, and performance metrics using advanced SQL techniques and visual storytelling.


πŸ“ Project Structure

β”œβ”€β”€ data/ β”‚ └── sales_data_sample.csv # Raw sales dataset β”œβ”€β”€ dashboards/ β”‚ └── Sales_Analysis_Dashboard.pbix # Power BI dashboard file β”œβ”€β”€ queries/ β”‚ └── sales_analysis_queries.sql # SQL scripts for data analysis


πŸ” Key SQL Features Implemented

  • βœ… Filtering & Sorting – Extract specific records based on year, city, and order status
  • βœ… Aggregations – Total sales, average sales, order counts by region
  • βœ… Joins – INNER, LEFT, RIGHT, FULL JOINs on customer and order data
  • βœ… Window Functions – ROW_NUMBER, RANK, NTILE, LAG
  • βœ… Grouping & Categorization – Using GROUP BY, HAVING, and CASE
  • βœ… Common Table Expressions (CTEs) – For reusable logic and cleaner queries

πŸ“Š Power BI Dashboard Overview

The Power BI dashboard delivers insightful visualizations with interactive features for deeper exploration of the sales data.

πŸŽ›οΈ Slicers

  • Product
  • Deal Size
  • Order Status
  • Year

πŸ“Œ Cards

  • Total Sales
  • Estimated Profit
  • Order Count

πŸ—ΊοΈ Visuals

  • Global Sales Overview by Deal Size (Map)
  • Sales Distribution by Product Line (Donut Chart)
  • Order Breakdown by Status & Deal Size (Clustered Bar Chart)
  • Sales Trend by Order Status (Line Chart)

πŸ› οΈ Tech Stack

  • Database: MySQL
  • Query Tool: SQL Workbench
  • Visualization: Power BI
  • Dataset: sales_data_sample.csv

πŸš€ How to Use

  1. Clone the repository

    git clone https://github.com/Progati00/SQL-Sales-Data-Analysis-Project.git
  2. Import the dataset into MySQL

    Use the sales_data_sample.csv file located in the data/ folder.

  3. Run SQL scripts

    Open and execute sales_analysis_queries.sql from the queries/ folder to explore and analyze the data.

  4. View Power BI Dashboard

    Open Sales_Analysis_Dashboard.pbix in Power BI Desktop (file located in dashboards/).

    πŸ“„ Dashboard PDF Preview (View a static snapshot of the dashboard for users without Power BI installed.)

  5. Customize Further

    Modify SQL queries or visuals to tailor the analysis to your specific business needs.


πŸ“ˆ Use Cases

  • Sales Performance Monitoring
  • Customer Purchase Behavior Analysis
  • Trend Analysis for Strategic Planning
  • Geographic Insights by Deal Size

πŸ”— Project Repository GitHub - SQL Sales Data Analysis Project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published