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.
- +13.4%net revenue growth FY26
- −25.3%contribution profit despite that growth
- ~₹1.1 Cr/yrprofit the fixes can recover
- 57DAX measures
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
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.
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.
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.
Report design
Three pages (Executive Summary, Discounts & Returns, Inventory & Stock) with synced fiscal-year, region, channel and category slicers.
Validation
The key figures were checked in DAX query view against an independent pandas calculation, and they match to the paisa.
What I found
- Lines sold at 30% or more off went from 12.5% to 33.5% of all order lines. They run at a −10.6% contribution margin and lost ₹54.1 L in FY26, while lines at 0–20% off still earn 16–29%.
- Fashion returns 26.7% of its sales value, against 6.6% for every other category, and 34.5% on the Marketplace. Returns cost ₹122.4 L of profit in the year.
- The Marketplace earns a 3.6% margin after its commission and returns, against about 20.5% on the website and app.
- Home Décor and Fitness Equipment were over-bought for the festive season: ₹99.5 L of stock at 660 days of cover, against 49 days for the rest. Nine SKUs (₹44.0 L) have not sold in 90 days.
| Priority | Action | Estimated impact |
|---|---|---|
| 1 | Cap discounts at 25%, except approved clearance, and price festive offers on contribution margin | ~₹81 L / year |
| 2 | Add size charts and stricter sale-item returns for Fashion on the Marketplace; push Fashion buyers to the app | ~₹13 L / year |
| 3 | Stop re-ordering Home Décor and Fitness Equipment, clear stock above 60 days of cover, and liquidate dead SKUs | Frees ₹90.5 L cash; ~₹16 L / year carrying cost |
Dashboard pages



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
- The data is synthetic, built to mirror real Indian e-commerce patterns. The ₹ impacts rest on stated assumptions (35% of deep-discount volume lost when capped, an 18% annual carrying cost).
- Next: add a price-elasticity test by category and a what-if parameter for the discount cap.