Case Study · Business Intelligence & Data ModelingAnalytical PrototypeHistorical CY 2018 Data Model

CommercePulse — Retail Sales & Profitability Analytics

An interactive retail analytics dashboard reconciling sales, profitability and payment channels across 500 orders and 1,500 line items.

Gross Sales Revenue
₹437,771
Across 500 Orders (1,500 line items)
Reconciled True AOV
₹875.54
Corrected from flawed 121K metric
Total Units Sold
5,615
Spanning 19 states and 25 cities
CommercePulse Analytics DashboardRelational Business Intelligence
CommercePulse retail analytics dashboard displaying sales, profit, and payment channel breakdown
Problem Addressed

Flawed Metrics and Operational Margin Blind Spots

In un-governed business intelligence reports, incorrect aggregation rules distort decision-making. In this retail operation, the legacy dashboard summed line-item prices to report an erroneous 121K Average Order Value—inflating unit economics by 138×. Executive leadership also lacked visibility into regional margin variations, product volume trade-offs, and payment rail efficiencies.

Architecture & Implementation

Relational Modeling and Governed DAX Architecture

To resolve metric distortions and deliver actionable commercial intelligence, I built a structured data modeling solution:

  • Two-Table Relational Star Schema: Modeled 500 order records and 1,500 line-item fact records with explicit foreign-key relationships.
  • Governed DAX Measure Engine: Reconciled true AOV (₹875.54) by dividing total sales (₹437,771) by distinct order count (500).
  • Interactive Client Slicing Engine: Built real-time cross-filtering across 19 states, 3 product categories, and 5 payment methods.
Technology Stack

Tools & Frameworks

Power BIDAX (Data Analysis Expressions)Relational Star SchemaTypeScriptNext.jsTailwind CSSData Cleaning & AuditingSVG Data Visualizations
Verified Results

Operational Findings and Revenue Governance

Auditing the full calendar year 2018 dataset established verified operational facts:

AOV Reconciliation

Reconciled Average Order Value from the erroneous 121K+ figure to the authentic ₹875.54 across 500 distinct client transactions.

Geographic Margin Leakage

Identified that Rajasthan produced ₹22.3K in gross sales but recorded a net operating loss due to excessive regional product discounting.

Volume vs. Value Dynamics

Clothing moved over 3,500 units for 33.0% of revenue, whereas Electronics delivered strong top-line sales across just 1,154 units.

Payment Rail Efficiency

Cash on Delivery commanded highest transaction volume, while Credit Card was used across select orders with 14.5% net margin.

Limitations

Scope and Data Boundaries

  • !Historical CY 2018 Data Only: Analyzes a single 12-month calendar year; observed variations reflect intra-year performance rather than recurring multi-year seasonality.
  • !Synthesized Customer Identity: Customer identities are fully anonymized for privacy, precluding multi-year repeat-purchase cohort tracking.
Technical Deep Dive

Detailed Schemas, Measures & Breakdown Visualizations

Click any section below to review the governed DAX measures, relational table schemas, and comprehensive empirical breakdown charts.

AuditReconciling the 121K AOV Calculation Defect

In the original Power BI report, the prominent Average Order Value (AOV) KPI card displayed an alarming figure: 121K Sum of AOV.

Our technical audit traced this distortion to an un-governed aggregation rule: the card executed a simple sum across the unit price column of all 1,500 line items rather than dividing total revenue by the distinct number of client orders.

By conducting relational modeling across the Orders and Details tables, CommercePulse reconciled this metric to the true Average Order Value of ₹875.54.

Governed DAX Measure Specification:
-- Governed Average Order Value (Reconciled from 121K Defect)
True AOV = 
DIVIDE(
    SUM(Details[Amount]),               -- Total Sales: ₹437,771
    DISTINCTCOUNT(Orders[Order ID]),    -- Distinct Orders: 500
    0
)                                       -- Result: ₹875.54
Metric Reconciliation AuditAudited (Phase 0)
Defective Measure in Legacy Dashboard
₹121,000+
Summed line-item prices row-by-row across 1,500 records
Reconciled True Operational Metric
₹875.54
Total revenue (₹437,771) divided by distinct transactions (500)
Operating with an un-governed ₹121K AOV inflates unit economic assumptions by over 138×.
SchemaStar Schema & Transactional Data Model
Orders Table (1)500 Records · Dimension
Order ID (PK)Key Identifier
Order DateCalendar Year 2018
Customer IDAnonymized Identifier
State & City19 States · 25 Cities
Details Table (N)1,500 Line Items · Fact Table
Order ID (FK)Relational Link (1:N)
Amount & Profit₹437,771 Sales / ₹36,963 Profit
Quantity5,615 Units
Category & Sub-Category3 Categories · 17 Sub-Categories
PaymentModeCOD, Credit, EMI, UPI, Debit
AnalyticsEmpirical Visual Aggregations & Denominators
Top 6 States by Sales RevenueShare of Total Revenue (₹437,771)
Maharashtra₹102,498 (23.4% of sales) · ₹6,963 profit
Madhya Pradesh₹87,463 (20.0% of sales) · ₹7,382 profit
Uttar Pradesh₹38,362 (8.8% of sales) · ₹3,358 profit
Delhi₹22,957 (5.2% of sales) · ₹1,958 profit
Rajasthan₹22,334 (5.1% of sales) · -₹323 (Net Loss)
Gujarat₹21,371 (4.9% of sales) · ₹3,001 profit
Top 6 states contribute 67.4% of total sales revenue. Notice the margin breakdown: Rajasthan generated ₹22.3K in gross sales (5.1% of sales revenue) but recorded an operational loss of -₹323 due to higher product discounting and category mix differences in that region.
Product Category DynamicsVolume (5,615 units) vs Sales (₹437,771)
Clothing (Apparel)62.6% of Total Units (3,516 units)
Sales: ₹144,323 (33.0% of revenue)Profit: ₹13,325 (9.2% margin)
Electronics38.0% of Total Revenue (₹166,267)
Units: 1,154 (20.6% of total volume)Profit: ₹13,162 (7.9% margin)
Furniture29.1% of Revenue · High Ticket Size
Sales: ₹127,181 · Units: 945 (16.8% of volume)Profit: ₹10,476 (8.2% margin)
Electronics and Clothing generate comparable nominal profits (₹13.1K vs ₹13.3K), but Clothing requires moving more than 3× the physical unit volume (3,516 units vs 1,154 units).
Payment Rail PerformanceDenominators: Revenue (₹437.8K) & Lines (1,500)
Cash on Delivery (COD)
₹155,181 (35.4% of revenue) · 684 lines (45.6% of lines) · 2,456 units (43.7% of volume)
₹12,5478.1% net margin
Credit CardTop Margin Efficiency
₹86,932 (19.9% of revenue) · 163 lines (10.9% of lines) · 672 units (12.0% of volume)
₹12,61214.5% net margin
EMI (Installments)
₹77,881 (17.8% of revenue) · 120 lines (8.0% of lines) · 589 units (10.5% of volume)
₹4,8246.2% net margin
UPI (Mobile Payment)
₹68,641 (15.7% of revenue) · 331 lines (22.1% of lines) · 1,157 units (20.6% of volume)
₹3,2864.8% net margin
Debit Card
₹49,136 (11.2% of revenue) · 202 lines (13.5% of lines) · 741 units (13.2% of volume)
₹3,6947.5% net margin
Denominators verified across 500 distinct orders: COD accounts for 45.6% of order lines ($N=1,500$), 43.7% of total units sold ($N=5,615$), and 35.45% of total revenue ($₹437,771$), while Credit Card delivers the highest margin efficiency (14.5% net margin) across 10.9% of line items.
CY 2018 Quarterly Profit SummaryQuarterly Aggregation
Q1 (Jan-Mar)₹25,942High Margin
Q2 (Apr-Jun)₹882Margin Dip
Q3 (Jul-Sep)-₹1,469Loss Trough
Q4 (Oct-Dec)₹11,608Festive Surge

Quarterly aggregation of calendar year 2018 transactions demonstrates intra-year profit dispersion: Q1 (₹25,942 across ₹161.3K sales) and Q4 (₹11,608 across ₹117.7K sales) generate the annual net operating profit of ₹36,963. In contrast, Q2 recorded near-breakeven net profit (₹882 across ₹87.1K sales) and Q3 suffered a net operating loss (-₹1,469 across ₹71.7K sales). As this represents a single calendar year of historical data, these variations document intra-year quarterly performance rather than multi-year recurring seasonality.

GovernancePrivacy Guardrails & Honest Boundaries

Privacy Guardrails & Honest Boundaries

Customer Data Anonymization

In compliance with privacy engineering standards, all individual customer names present in the original raw CSV files have been stripped and replaced with non-traceable synthetic identifiers. No personal customer records are published or imported into client bundles.

Privacy Rule: Zero PII exposure across portfolio web assets.
Interactive Playground Operational

Explore the Live CommercePulse Slicing Engine

Interact directly with the historical 2018 sales dataset. Filter dynamically across 19 states, product categories, payment modes, and calendar quarters with real-time DAX-governed KPI recalculation.

Launch Explorer →