// ENTERPRISE DATA ANALYTICS & BI PRODUCTS

Business Intelligence & Analytics Hub

Select an analytics project below to inspect interactive PostgreSQL dashboards, SQL explorers, data quality audits, and strategic executive recommendations.

// SELECTED PROJECT:01 · Business Performance Analytics
99,970 TRANSACTIONSPOSTGRESQLSQL ANALYSISPOWER BI / BIPYTHON
100% SQL VALIDATED DATASET
// END-TO-END DATA ANALYTICS & BI CASE STUDY

Business Performance Analytics

An end-to-end sales and profitability intelligence project analyzing 99,970 sales transactions across 30 months (Jan 2024 – Jun 2026). Demonstrates data cleaning in Python, relational modeling in PostgreSQL, advanced SQL query execution, transaction target hit-rate analysis, and interactive executive reporting.

REVENUE
₹3.37B
₹3,368.3M Exact
PROFIT
₹1.06B
₹1,057.9M Exact
MARGIN
31.41%
Overall Retention
ORDERS
99,970
0 Duplicates
QUANTITY
339.2K
339,217 Units
AVG ORDER
₹33.69K
Mean Value
PostgreSQL Table: public.sales_transactions (30 Months)
// END-TO-END METHODOLOGY PIPELINE

8-Stage Analytical Architecture

Click any stage in the flow below to inspect tools, validation steps, and analytical transformations.

STAGE 01 DETAIL:Raw Dataset

99,970 multi-channel retail sales records spanning 2024-01-01 to 2026-06-30.

Contains transaction ID, dates, customer segments, product categories, unit prices, discounts, sales targets, and payment channels.

DATA VALIDATION & QUALITY AUDIT

Data Cleaning & Preprocessing Log

Comprehensive audit log documenting cleaning steps, category standardization, and payment channel string normalization.

TOTAL ROWS
99,970
100% Verified
UNIQUE ORDERS
99,970
0 Duplicate Keys
FIRST ORDER
2024-01-01
Jan 1, 2024
LAST ORDER
2026-06-30
Jun 30, 2026 (YTD 6M)
// STANDARDIZATION & AUDIT TRANSFORMATIONS
Inconsistent Category Capitalization
Cleaned in Analytics Layer
Source Dataset Variations:
accessories, Accessories, appliances, Appliances, electronics, Electronics, furniture, Furniture, office supplies, Office Supplies
Analytics Transformation:
Standardized to Title Case across 5 distinct categories for analytical grouping.
Payment Method Misspelling
Mapped in UI Layer
Source Dataset Variations:
Unkown (150 occurrences)
Analytics Transformation:
Mapped "Unkown" to "Unknown" in display layer without altering database source lineage.
Financial Column Verification
100% Validated
Source Dataset Variations:
revenue, total_cost, profit, profit_margin
Analytics Transformation:
Validated gross_sales - discount_amount = revenue and revenue - total_cost = profit across 99,970 rows.
PRODUCTION SQL QUERY EXPLORER

Interactive SQL Analysis Notebook (11 Queries)

Select any query from the sidebar below to inspect the exact SQL code, business questions, and verified output tables.

// SELECT QUERY (11 PROD QUERIES)
QUERY 01 — OVERALL BUSINESS PERFORMANCE KPIS
BUSINESS QUESTION: What is the total revenue, total profit, overall profit margin, total orders, and average order value across all transactions?

Aggregates the entire sales_transactions dataset of 99,970 rows to establish primary executive KPIs.

PostgreSQL Dialect · public.sales_transactionsSyntax Verified
SELECT
    COUNT(*) AS total_transactions,
    SUM(quantity) AS total_quantity,
    SUM(revenue) AS total_revenue,
    SUM(profit) AS total_profit,
    ROUND(
        SUM(profit) / NULLIF(SUM(revenue), 0) * 100,
        2
    ) AS profit_margin_pct,
    ROUND(AVG(revenue), 2) AS average_order_value
FROM sales_transactions;
QUERY RESULT OUTPUT PREVIEW1 row returning total_transactions (99,970), total_revenue (₹3.37B), total_profit (₹1.06B), profit_margin_pct (31.41%).
total_transactionstotal_quantitytotal_revenuetotal_profitprofit_margin_pctaverage_order_value
99970339217₹3,368,329,417.33₹1,057,911,296.0731.41%₹33,693.40
SQL-DERIVED EXECUTIVE INSIGHTS

Key Business Findings & Data Insights

Executive summary derived directly from the PostgreSQL 99,970 transaction analysis.

// Revenue LeadershipHigh Impact

Electronics Leads Overall Revenue Generation

₹1.35B Revenue (40.0% of Total)

Electronics represents the single largest revenue stream at ₹1.35B with a strong 33.38% profit margin, outperforming all other product categories.

// Profitability MarginHigh Impact

Office Supplies Achieves Highest Profit Margin

35.24% Margin Leadership

Despite generating lower gross revenue (₹158.4M), Office Supplies maintains the portfolio's highest margin efficiency at 35.24%.

// Target Achievement RiskCritical Impact

Low Transaction Target Hit Rate Across High Targets

6.28% Transaction Hit Rate

Only 6,278 of 99,970 transactions hit assigned target thresholds. Higher sales targets (₹300K) see hit rates fall to 1.94%.

// Discounting ErosionCritical Impact

Profit Margin Degrades Rapidly at Higher Discount Bands

14.74% Margin Spread

Profit margins drop from 34.70% for transactions with <5% discount to 19.96% for transactions with >20% discount.

// Regional DistributionMedium Impact

West Region Dominates Revenue; South Holds Margin Lead

₹958.9M West Revenue

West territory leads in sales volume (28,782 orders), while South territory delivers the highest regional profit margin at 31.56%.

ACTIONABLE BUSINESS STRATEGY

Strategic Business Recommendations

5 concrete, data-backed operational actions for management derived directly from analytical findings.

01

Re-align Transaction Sales Target Structures

Immediate Priority
DATA FINDING:

Overall transaction-level target hit rate is only 6.28%, dropping to 1.94% at the ₹300K target level.

STRATEGIC ACTION & RATIONALE:

Unrealistically high transaction targets create disincentives. Restructuring targets around historical median order values (₹33.7K) will improve achievement and morale.

02

Enforce Governance on High Discount Bands

Immediate Priority
DATA FINDING:

Margins erode by nearly 15 percentage points (from 34.70% to 19.96%) when discounts cross 20%.

STRATEGIC ACTION & RATIONALE:

Uncontrolled discounting directly damages profitability without generating proportional volume increases.

03

Protect and Expand High-Margin Office Supplies

High Priority
DATA FINDING:

Office Supplies maintains a market-leading 35.24% margin but represents only 4.7% of total revenue.

STRATEGIC ACTION & RATIONALE:

Increasing basket penetration of high-margin accessories and supplies boosts net portfolio profit margin with minimal inventory risk.

04

Scale High-Value Electronics Inventory & Marketing

High Priority
DATA FINDING:

Electronics drives ₹1.35B in revenue with strong 33.38% margins.

STRATEGIC ACTION & RATIONALE:

Electronics is the primary revenue engine. Ensuring high product availability for top items like P-0218 maximizes top-line growth.

05

Coach Salespeople in High Sales / Low Efficiency Category

Medium Priority
DATA FINDING:

20 salespeople generate high gross revenue but remain below average profit margins due to aggressive discount usage.

STRATEGIC ACTION & RATIONALE:

Coaching high-volume reps to reduce average discount by 3% will unlock millions in bottom-line margin expansion.