Retail · Power BI · Margin, returns & inventory

Sales & Profitability Dashboard

Net revenue grew 13% but contribution profit fell 25%. Where was the margin leaking? I built a three-page Power BI report that follows every rupee of sales through discounts, returns, channel fees and stock.

Solo project · end to endNov 2026

The problem

UrbanKart Retail Pvt Ltd, a fictional Indian online retailer, sells through its own website, a mobile app and marketplaces. In FY2025-26 it ran a sale almost every month. Net revenue rose from ₹16.00 Cr to ₹18.13 Cr, but contribution profit fell from ₹3.45 Cr to ₹2.58 Cr, and margin dropped from 21.6% to 14.2%. Leadership wanted to know which discounts, categories and channels were losing money, what returns were costing, and whether the warehouse was full of stock that would not sell.

The data

A reproducible synthetic dataset covering two Indian fiscal years (April to March): 153,530 order lines with list price, discount, cost, shipping, channel fees and returns, plus month-end stock snapshots for 248 products across 12 cities and 3 channels. The generator builds in festive seasonality, category margins, a 15% marketplace commission, discount-driven returns and an over-buying scenario that the report has to find.

Approach

  1. Data model

    A star schema with 2 fact tables (sales lines, inventory snapshots) and 4 dimension tables, plus a DAX date table with fiscal year, quarter and month.

  2. Profit definition

    Contribution profit = net revenue after returns − cost of goods kept − shipping − marketplace and payment fees − return costs, so every sale is judged on what it really earns.

  3. DAX measures

    57 measures in display folders: margin, discount bands, return cost, year-on-year time intelligence, semi-additive stock with LASTDATE, days of cover with DATESINPERIOD, and excess and dead stock with SUMX over products.

  4. Report design

    Three pages (Executive Summary, Discounts & Returns, Inventory & Stock) with synced fiscal-year, region, channel and category slicers.

  5. Validation

    The key figures were checked in DAX query view against an independent pandas calculation, and they match to the paisa.

What I found

Recommended actions
PriorityActionEstimated impact
1Cap discounts at 25%, except approved clearance, and price festive offers on contribution margin~₹81 L / year
2Add size charts and stricter sale-item returns for Fashion on the Marketplace; push Fashion buyers to the app~₹13 L / year
3Stop re-ordering Home Décor and Fitness Equipment, clear stock above 60 days of cover, and liquidate dead SKUsFrees ₹90.5 L cash; ~₹16 L / year carrying cost

Dashboard pages

Executive Summary page with KPI cards, margin trend and insights
Executive Summary: KPIs, revenue and margin against last year, margin by category and channel
Discounts and returns page
Discounts & Returns: margin by discount band, deep-discount share, return rate by category and channel
Inventory and stock page
Inventory & Stock: stock trend, days of cover by sub-category, over-bought range and dead stock

The key insight

Growth was bought, not earned. A third of all orders went out at a loss once shipping, marketplace fees and returns were counted, and the same push left ₹1 Cr of slow stock in the warehouse. Capping discounts, fixing Fashion returns on the Marketplace and clearing the over-bought range are worth about ₹1.1 Cr a year, more than the ₹87 L of profit lost.

Limitations & next steps

Tools