0

KPI Dashboard (Streamlit BI App)

Built full ETL + dashboard pipeline for weekly retail KPI monitoring across 4 regions. Includes anomaly detection, target vs actual tracking, and CSV export.

Interactive Dashboard Demo

Weekly KPI Dashboard

Interactive demo • Data from ETL pipeline

Last updated

Dec 30, 2024

Regions:
Total Revenue
₹237K
348.7% vs last week
vs Target
-86.1%
Units Sold
459
359.0% vs last week
Return Rate
0.0%
0.0% vs last week

Revenue Trend by Region

Red dots indicate statistical anomalies (>2σ)

Revenue by Region (Stacked)

South region underperformance visible in Q3 onwards

Latest Week Data (Dec 30, 2024)

RegionRevenuevs TargetUnitsStatus
East60,870-85.5%118✓ Normal
North61,029-86.0%118✓ Normal
South49,091-87.5%95✓ Normal
West65,657-85.5%128✓ Normal

This React component embeds real data from the ETL pipeline. Toggle regions, show/hide targets, and see anomaly detection in action — all rendered directly in your browser.


Live Streamlit Version

Deploy Your Own Copy →

One-click deploy to Streamlit Cloud for the full interactive experience with CSV export.


The Business Problem

A regional retail company needed a dashboard a non-technical Operations Manager could open every Monday morning to check how each region performed — and get flagged automatically if something was off.

Zero Excel. Zero manual refresh. One command to run the whole thing.


Key Stats (Real Data)

4
Regions tracked (North, South, East, West)
52
Weeks of KPI data (full year 2024)
-15%
South region miss on revenue targets (Q3 onward)
3
Anomaly weeks auto-flagged (>2σ spikes)

ETL Pipeline Architecture

Raw CSVs (sales + targets)

  ETL Pipeline (scripts/etl.py)
  ├── Date parsing & null cleanup
  ├── Weekly aggregation by region
  ├── Merge with targets → vs_target %
  └── Anomaly detection (>2σ flagged)

  weekly_summary.csv

  Dashboard (Streamlit + React)
  ├── 4 KPI tiles (Revenue, vs Target%, Units, Return Rate)
  ├── Line chart with optional target line + anomaly dots
  ├── Stacked bar chart by region
  ├── Conditional-formatted data table
  └── CSV download button

Dashboard Features

  • Region multiselect filter — isolate any region combination (shown above)
  • Show targets toggle — overlay target line on the revenue chart
  • Anomaly highlighting — weeks with >2σ revenue spike shown as red dots
  • Conditional formatting — table rows colored by performance vs target
  • CSV export — download filtered data with one click

The South Region Story

From July 2024 onward, South region consistently missed revenue targets by ~14–16%. The dashboard surfaces this automatically — no need to manually look at numbers. A manager viewing this on a Monday morning would immediately know to investigate South region operations.

The demo above shows this pattern clearly: toggle "South" on/off and see how it drags down overall performance in Q3-Q4.


What Hiring Managers See

Technical Depth

  • ETL Pipeline: Production-ready Python with logging, error handling, data validation
  • Statistical Analysis: Z-score anomaly detection (>2σ threshold)
  • Data Modeling: Clean separation of raw → processed → presentation layers
  • React + Recharts: Custom interactive components (the dashboard above)

Product Thinking

  • Stakeholder-first design: Non-technical users can filter and explore
  • Anomaly detection: Automated flagging of unusual patterns
  • Performance storytelling: South region narrative emerges from data

Resume Bullet

KPI Dashboard — Streamlit BI App (Python, Pandas, Streamlit, React, Recharts) Built a full ETL + dashboard pipeline for weekly retail KPI monitoring across 4 regions. ETL cleans raw sales data, merges with targets, and flags statistical anomalies (>2σ). Created both a Streamlit dashboard for stakeholders and an embedded React component for portfolio demonstration. Includes region filtering, target comparison, anomaly highlighting, and CSV export.