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.
βββ 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
- β 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
, andCASE
- β Common Table Expressions (CTEs) β For reusable logic and cleaner queries
The Power BI dashboard delivers insightful visualizations with interactive features for deeper exploration of the sales data.
- Product
- Deal Size
- Order Status
- Year
- Total Sales
- Estimated Profit
- Order Count
- 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)
- Database: MySQL
- Query Tool: SQL Workbench
- Visualization: Power BI
- Dataset:
sales_data_sample.csv
-
Clone the repository
git clone https://github.com/Progati00/SQL-Sales-Data-Analysis-Project.git
-
Import the dataset into MySQL
Use the
sales_data_sample.csv
file located in thedata/
folder. -
Run SQL scripts
Open and execute
sales_analysis_queries.sql
from thequeries/
folder to explore and analyze the data. -
View Power BI Dashboard
Open
Sales_Analysis_Dashboard.pbix
in Power BI Desktop (file located indashboards/
).π Dashboard PDF Preview (View a static snapshot of the dashboard for users without Power BI installed.)
-
Customize Further
Modify SQL queries or visuals to tailor the analysis to your specific business needs.
- 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