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.
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
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
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.
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;- Total Revenue
- Total Profit
- Profit Margin
- Sales Growth
- Top Products & Categories
- 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
This analysis enables:
- Identification of high-margin products
- Better pricing and promotion strategies
- Improved inventory planning
- Data-driven decision-making
The Power BI dashboard provides:
- Executive KPI summary
- Revenue and profit trends
- Product and category performance
- Customer insights
├── dashboards/
├── images/
├── notebooks/
├── sql/
├── README.md
- Load dataset into MySQL
- Execute SQL queries from /sql
- Run Python analysis in /notebooks
- Open Power BI dashboard in /dashboards
- SQL (MySQL)
- Python (Pandas)
- Power BI (DAX, Data Modeling)
- Git & GitHub
- Add automated data validation checks
- Implement advanced SQL (window functions)
- Deploy dashboard using web-based tools
- Expand analysis with predictive modeling