🛍️ 360° Retail Analytics: From Data Cleaning to Insightful Dashboards – End-to-End Data Analytics Project
This is a complete business intelligence and analytics project built using Excel, SQL, Python, and Power BI. It analyzes a retail dataset to uncover insights into sales trends, shipping performance, and customer segmentation.
To build an end-to-end data analytics solution that can:
- Clean and transform raw retail data using Excel
- Perform sales and customer analysis using SQL and Python
- Build RFM-based customer segments using clustering techniques
- Design professional Power BI dashboards for business decision-making
Dataset: Superstore Sales Dataset (Kaggle)
File format: Excel (.xlsx)
Key Columns:
- Order ID, Order Date, Ship Date, Customer ID, Segment, City, State, Region, Product Details, Sales, Quantity, Discount, Profit
| Tool | Purpose |
|---|---|
| Excel | Initial data cleaning and pivoting |
| MySQL | SQL-based data exploration & queries |
| Python | EDA, RFM Analysis, Clustering |
| Power BI | Dashboard creation and storytelling |
| Git & GitHub | Version control and portfolio |
- Cleaned the raw data (e.g., fixed date format issues like
mm-dd-yyyy) - Used VLOOKUP, Pivot Tables, and Filters for quick summaries
- Verified completeness and removed redundant columns
- Exported cleaned version to be used in SQL and Python
Environment: MySQL
Key analysis performed:
- Monthly sales trend by order date
- State and Region-wise sales & profit breakdown
- Product category and sub-category performance
- Average delivery time (ship date – order date)
🧠 Advanced queries:
Used JOIN, GROUP BY, DATE_FORMAT, CTE, RANK() and CASE to prepare intermediate summaries for dashboards.
Platform: Jupyter Notebook
- Imported cleaned dataset using Pandas
- Created RFM (Recency, Frequency, Monetary) table
- Applied KMeans clustering after interpreting Elbow Method
- Visualized clusters using Seaborn and Matplotlib
- Labelled customers into: Best, Average, Churned, etc.
Built three interactive dashboards using cleaned data and SQL summaries:
- Total Sales, Profit, Quantity, Avg Discount KPIs
- Monthly trend line chart
- Category/Sub-category bar charts
- Region and State map visual
- Shipping mode distribution
- Avg delivery time trend
- Region-level shipping delay comparisons
- Product categories causing delivery delays
- RFM metric cards
- Segment filter with customer count
- Cross-visual interactions for detailed filtering
✅ Features Implemented:
- DAX measures for KPIs
- Drill-downs and slicers
- Navigation buttons to switch between dashboards
- Top-performing segments: Corporate segment dominates high-profit states.
- Shipping: Second Class shipping mode has higher delays in Southern regions.
- Customer Segments: ~25% of customers fall under high-frequency & high-spending cluster – loyal base for campaigns.
- Profitability Issues: Discounts >20% often lead to negative profits in certain sub-categories like Tables.