SQL & POWER BI CASE STUDY

Maven Toys Sales Analysis

Dataset: ~829K transactions / 6 tables Tools: SQL Server, Power BI Role: Data Analyst

Project Overview

The goal of this project was to analyze commercial performance across multiple toy retail outlets, identifying growth opportunities, high-performing product categories, and margin pressure points. Using SQL Server for relational data modeling and Power BI for reporting, I built a 5-page interactive dashboard.

Note on Defensibility: Rather than just reporting aggregate metrics, I integrated external research on retail seasonality to explain the why behind sales trends, validating claims with data rather than assumptions.

Data Pipeline & Prep (SQL)

The source data consisted of six relational CSV tables (Sales, Products, Stores, Inventory, and Calendar). The initial cleaning phase required handling mismatched formats, sorting store locations, and validating primary-foreign key integrity.

Key steps executed in SQL:

-- SQL Query: Monthly Year-Over-Year Revenue Analysis SELECT DATEPART(year, s.Date) AS SalesYear, DATEPART(month, s.Date) AS SalesMonth, SUM(s.Units * p.Product_Price) AS TotalRevenue, LAG(SUM(s.Units * p.Product_Price), 12) OVER ( ORDER BY DATEPART(year, s.Date), DATEPART(month, s.Date) ) AS PrevYearRevenue FROM Sales s JOIN Products p ON s.Product_ID = p.Product_ID GROUP BY DATEPART(year, s.Date), DATEPART(month, s.Date);

Power BI Dashboard Architecture

The interactive report contains five dedicated dashboards that analyze the data from different business angles:

Maven Toys Power BI dashboard — walkthrough of KPI scorecards and sales trend pages

Key Insights & Business Outcomes

Revenue grew 30.9% year over year, but margin dropped from 29.3% to 26.2% over the same period. So growth came at a cost. The category breakdown shows why. Toys is the top revenue category, but it's also the lowest-margin one. Meanwhile, higher-margin categories like Electronics grew much slower.