Skip to content

MPR Drishti - Government Performance Analytics

An end-to-end analytics pipeline that collects, validates and explains the monthly performance reports of India’s indirect-tax administration: from automated data collection to dashboards that tell the story.

Data acquisition & automation Data engineering Data quality KPI design Visualisation & storytelling Public-sector analytics

Built during: my last government role, as Data Analytics Officer (see experience) · My role: creator and sole project lead, working under the guidance of senior authorities · Built for: officers and managers who prepare and run monthly performance reviews · The name: Drishti means “vision” or “sight” in Hindi.

17,626report files collected and organised automatically
190report types, each with its own table layout
3tax streams: GST, Central Excise and Service Tax
14 + 1commissionerates and the zone, benchmarked against All India
11interactive dashboards: one per function plus a zonal summary
~2 sper report, collected unattended

India’s indirect-tax administration tracks the performance of its field offices through Monthly Performance Reports (MPRs): hundreds of separate reports, published one page at a time on a login-protected internal portal. I built an end-to-end analytics solution around them. An automation tool collects every report a zone needs, and an offline dashboard turns more than 17,000 of them into validated, comparable measures. It shows how each commissionerate is doing, how the zone compares with All India, and where action is needed.

1 · MPR Downloader

Data collection. A single double-click file with nothing to install. The user logs in; the tool then works through the report pages the way a person would, for every unit and month chosen. It files each report into one consistent folder structure, is safe to stop and resume, and finishes with a completeness check.

2 · MPR Drishti

Analysis and storytelling. A single offline web page: drop the folder on it and every dashboard fills itself. It parses, validates and connects the reports into measures for each unit, the zone and All India, then presents them as slide-style dashboards with headlines written from the data, plus Excel and PDF exports.

I ran MPR Drishti as a project from start to finish: I proposed it, got it approved, learned from the officers who compile the reports and the managers who review them what they needed, built it in stages, piloted a first version and improved it, rolled it out as an install-free tool, used it for the monthly reviews, and handed it over when I left.

Initiate2024 · proposal and approval
→
Plan2024 · user needs, 190 report types
→
Build and test2024 · pipeline in stages
→
Pilot2024 · first version, rebuilt
→
Roll out and train2024 · install-free tool
→
Monitor2024 · completeness, reviews
→
Close2024 · handover to my successor
The full life cycle, owned end to end, under the guidance of senior authorities.

Owner

Creator and sole project lead: the idea, the design, the build, the rollout and the results.

Sponsor and approval

Senior authorities approved the project and used its dashboards in performance reviews; I worked under their guidance throughout.

Users and stakeholders

The officers who compile the monthly figures, and the managers who prepare and run the monthly performance reviews.

Decisions I owned

What to collect and how to store and validate it, which measures each function needed, how the dashboards tell the story, and how the tool reached its users.

PhaseWhat I didOutput
InitiateSaw how much time went into downloading, filing and checking monthly reports by hand; proposed automating the collection, validation and dashboards; obtained approvalApproved proposal
PlanLearned from the officers who compile the reports and the managers who review them what they needed; mapped the 190 report types and designed one storage schemaScope and design
Build and testBuilt the downloader, the validation checks, the shared analysis engine and the dashboards in stages, testing each against real reportsA working pipeline
PilotRan a first version in Python, then rebuilt it as a single double-click file with a guided form so that it would run on any office computer without installing anythingAn install-free tool
Roll out and trainPut the tool and the dashboards in the hands of the officers and managers, with live progress and a completeness report, and showed them how to use themUsed in the monthly reviews
Monitor and controlUsed the completeness checks to catch missing or provisional reports, and reported the findings to senior authoritiesTrustworthy monthly figures
Close and hand overHanded the tool, the dashboards and the routine over to the next officerA running pipeline with a new owner
  • Data locked in one-at-a-time web pages. Each report is a separate page. Reaching one means choosing year, month, tax stream, zone and commissionerate from five dropdowns, then clicking a button.
  • Volume and variety. One zone’s picture needs thousands of reports across 190 report types, 3 tax streams and 15 reporting units, and each type has its own table layout with merged headers.
  • Formats that change over time. Several report families were redesigned around 2023-24, so years cannot simply be lined up side by side.
  • No built-in checks or comparisons. Reports can be provisional, duplicated, misfiled or internally inconsistent. Comparing units, or the zone with the national picture, meant copying figures into spreadsheets by hand.
BeforeAfter
Collecting dataFive dropdowns and a click for every report, every unit, every monthChoose once; reports download unattended, about 2 seconds each
OrganisingFiles named by the portal, saved wherever they landedOne folder tree: stream → zone → financial year → commissionerate → report
CheckingErrors found by chance, if at allEvery file checked: completeness, wrong month or unit, duplicates, totals that don’t add up
ComparingManual spreadsheets, one report at a timeEach unit against the zone, last year and All India, across every function
ReportingStatic tablesDashboards with conclusions and points for attention, an Excel workbook and PDF slides

Every stage of the analytics lifecycle is covered, built from scratch: acquire, organise, validate, integrate, analyse and communicate.

1 · Acquirebrowser automation
→
2 · Organisefolder schema, logs
Downloader
then
Drishti
3 · Validatefile and arithmetic checks
→
4 · Integrateparse, map, harmonise
→
5 · AnalyseKPIs, trends, benchmarks
→
6 · Communicatedashboards, Excel, PDF
Stages 1 and 2 are the MPR Downloader; stages 3 to 6 are the MPR Drishti dashboard.
  1. Acquire - automated collection. The tool opens its own Edge browser window and waits while the user logs in, so it never sees or stores a password. Inside that logged-in session it chooses year, month, stream, zone and commissionerate for every report, at a steady pace. It waits for each page to settle, retries failures, pauses when the portal is slow and asks for a fresh login if the session expires.

    Browser automation PowerShell Resilient scraping
  2. Organise - one storage schema. Every report lands in stream / zone / financial year / commissionerate / report. Downloads are incremental: files already present are skipped, and copies saved before the units’ monthly filing deadline are refreshed automatically on a later run. Every attempt is logged (JSON Lines and CSV), and each run ends with a completeness check against what the portal listed.

    Data engineering Incremental loads Audit trail
  3. Validate - check before use. Each file is checked for the wrong month or unit, duplicates, files resaved in Excel, missing tables and incomplete sets. Internal arithmetic is checked too: opening + received − disposed must equal closing, totals must equal the sum of their parts, and amounts must be in the right unit. Each issue says what was done and what to do.

    Data quality Reconciliation Anomaly detection
  4. Integrate - from tables to one model. HTML report tables with merged header cells are parsed into a grid, and every figure gets a stable key (table · row path · column path). Commissionerate names are matched despite spelling variants. Old and new report formats are harmonised so years can be compared, units add up to zone totals, and All India serves as the benchmark.

    Parsing Entity matching Data modelling
  5. Analyse - measures that matter to managers. I designed function-specific KPIs: disposal and recovery rates, growth on last year, achievement against moving targets, age profiles of pending cases, and shares and concentration (for example, the top 25 taxpayers’ share). Each commissionerate is ranked against the zone, and the zone against All India.

    KPI design Benchmarking Domain analysis
  6. Communicate - conclusions, not just charts. Eleven slide-style dashboards with hand-built charts: bars, stacked bars, lines, bullet charts, heatmap scorecards and Sankey flows. Headlines and up to six points for attention are written from the figures themselves. One click exports a consolidated Excel workbook or PDF slides.

    Data visualisation Data storytelling UX
Mock-up of the MPR Downloader: a six-step form (stream, zones, commissionerates, months, reports, save to) beside a progress screen with counters for downloaded, skipped, refreshed, retried and failed reports. All figures are invented.
The MPR Downloader: a six-step form and a live progress screen. Mock-up with invented figures.

Each report on its own answers a narrow question. The value came from linking them: across units, across time, across reports, across functions and against a national benchmark.

One folder17,626 report files · 190 types · 15 units + All India
→routed by report code, validated
Anti-EvasionRevenue & MobilisationAdjudicationArrears & RecoveryLegal & ProsecutionAuditRefunds & RegistrationReturn ScrutinyCentral ExciseService Tax (legacy)
→headline figures from the 8 GST dashboards
Zonal Summaryheadlines, measures, money flows, points for attention
One folder of raw reports is routed into ten function dashboards. The eight GST dashboards each publish their headline figures, and the Zonal Summary combines them without reading a single file itself.

1 · Across units

The 14 commissionerates are added up to the zone total and cross-checked against the zone’s own report. Executive, appeals and audit units are treated differently: appeals units re-report the cases of the units they serve, so they are set aside to avoid double counting. Scorecard heatmaps rank each unit against the zone.

2 · Across time

Financial years since GST began in 2017 are lined up, using March as each year’s full-year figure. Old and redesigned report formats are harmonised, and a “years” view compares only the measures both formats share. Provisional months are refreshed after the filing deadline.

3 · Across reports

Related reports are reconciled with each other: the arrears summary against the stage-wise reports, case outcomes against disposals, audit counts across three audit reports. A gap between a total and its parts is shown as “not accounted for” rather than hidden.

4 · Across functions

The tax-dispute process is linked end to end, from notice to adjudication order to arrears to recovery, and drawn as Sankey flows. Orders that dropped a demand are shown beside the department’s appeals, and one summary combines all GST functions.

5 · Against a national benchmark

Every key rate is compared between the zone and All India, but only for months where the All India set is complete and no file was rejected. An outlier guard drops a month if the zone’s share of All India is more than ten times away from its usual (median) share, which catches mis-keyed national figures before they distort a comparison.

Show-cause noticedemand raised
→
Adjudication orderconfirmed or dropped
→
Arrearsconfirmed, not yet paid
→
Recoverymoney actually realised
The dispute chain the dashboards follow end to end. Linking four separate report families is what turns case counts into a story about money.

Eleven dashboards, one for each question a manager asks. Each is a deck of slides that follows the same story track: an overview, the function’s own topics, a comparison of units, the All India benchmark and finally the actions. Every headline is a conclusion worked out from the figures, such as “Only N% realised” or “Units A and B delivered N% of the growth”, rather than fixed text. The Adjudication deck, for example, runs:

OverviewPendencyDisposalHigh-value casesCall bookComparisonAll IndiaActions

The mock-ups below show the layout, chart types, headlines and action points with invented figures and generic unit names.

Mock-up of the Zonal Summary overview slide: four stat tiles, a bar list of units by measures at or above the zone, and a segmented bar showing money detected as realised, in adjudication and under appeal. All figures are invented.
Zonal Summary overview: stat tiles with change on last year, units at a glance and where detected money stands.
DashboardQuestions it answersExample measures
Zonal SummaryHow is the zone doing across all functions, and where does it lag the national picture?“k of M key measures as good as All India”; best and weakest units; money detected, pending and realised
Anti-EvasionHow much evasion is detected and actually realised? What do investigations, searches and arrests show?Detection, realisation %, growth, disposal %
Revenue & MobilisationIs collection on target and growing? Who are the largest taxpayers, and why did some pay less?Growth, achievement against a moving target, refunds as % of gross, top-25 concentration, blocked credit by age
AdjudicationHow many cases are pending, how old are they, and which are close to the legal time limit?Disposal rate, share over 1 year, cases with under 3 months left, % of demand confirmed
Arrears & RecoveryWhere is confirmed revenue stuck, and how much is being recovered?Arrears by stage and age, recovery rate, litigation without a stay, insolvency claims
Legal & ProsecutionHow does the department fare in appeals? Which cases are old or high-value?Win rate, disposal rate, share over 3 years, reviews pending, late prosecutions
AuditAre allotted taxpayers being audited, and is what audit detects being recovered?Coverage, detection against recovery, audit paras by age, external audit paras awaiting a reply
Refunds & RegistrationAre refunds and registrations processed on time?Acknowledged in 15 days, pending over 60 days, approved in 7 days, rejection rate
Return ScrutinyAre returns scrutinised, does scrutiny turn into recovered tax, and are taxpayers filing?Concluded %, recovery %, return filing rate against All India
Central ExciseHow is revenue from petroleum and tobacco doing, and how fast are pre-GST disputes being cleared?Growth, achievement against target, adjudication rate, old call-book share
Service Tax (legacy)What is left of the pre-GST book, and how long will it take to clear?Years needed to clear appeals at this year’s pace, recoverable share, unchanged-since flags

Drop and go

Drop one folder. Each dashboard reads only its own reports in the background, and the summary fills itself.

Offline and private

A single web page with no server and no uploads. The data never leaves the browser.

Explore

Choose the period, pick commissionerates (totals are recomputed), get a slide overview, switch light and dark themes, use keyboard shortcuts.

Excel workbook

Summary, abstract, one sheet per report table in its original layout, the validation log, and long-format data ready for pivot tables.

PDF slides

Every slide printed one per page, ready for a review meeting.

Points for attention

Up to six action points per function, ranked by severity, raised only when the figures show them.

Data quality: making the numbers trustworthy

Section titled “Data quality: making the numbers trustworthy”

Real administrative data is messy. A large part of the work went into catching problems automatically, and into explaining every decision so that users can trust the result. Every dashboard opens with a Validation slide: a coverage grid shows each commissionerate and month as complete, partial, problem or missing, and an issue list sorts everything into errors, warnings and notes.

Mock-up of the validation slide: a coverage grid of eight units by twelve months with complete, partial, problem and missing cells, beside an issue list that says what was found and what was done. All data is invented.
The Validation slide: coverage at a glance, and every issue with what the dashboard did about it. Mock-up with invented data.
Problem in the dataHow it is caughtWhat happens
Wrong file in the wrong placeThe month, unit and report code in the report header are compared with the file name and folderThe header wins; mismatches are flagged or the file is rejected
Duplicates and old copiesThe same report, unit and month seen twice; identical figures under two unitsThe latest copy is kept; the rest are labelled
Provisional dataA report saved before the units’ monthly filing deadlineDownloaded again automatically on the next run after that date
Totals that don’t add upOpening + received − disposed = closing; total = sum of parts; age buckets = pending; “for the month” ≤ “up to the month”Flagged with the exact figures; gaps shown as “not accounted for”
Wrong unit of measureAmounts implausibly large against the unit’s whole revenue or caseload (entered in rupees, not lakh)Left out of the totals, with a note saying why
Number formatting quirksOdd separators, blanks, dashes and percentage columnsNumbers cleaned; percentages recalculated rather than trusted
Names that varyCommissionerate spellings differ between reports and yearsMatched while tolerating small typos, but never confusing North with South, or I with II
Units reporting nothingA unit’s report is all zeros while every other unit reports figuresFlagged as “nothing reported” and excluded from rates
Distorted or incomplete benchmarkThe zone’s share of All India is more than 10 times away from its median, or the All India set is incompleteThat month’s All India comparison is dropped

Analytics tools get used when they fit the people and the environment. These choices shaped the build.

DecisionWhyHow
Zero installationUsers work on office computers where installing software is often not allowedBoth tools are single files. The downloader needs only Windows and Edge; the dashboard runs in any modern browser
Human in the loop for loginThe portal uses a multi-factor login, and credentials must never be stored or automatedThe user logs in; the tool waits, then works only inside the logged-in report page
Privacy firstPerformance data is sensitiveThe dashboard is fully offline: no server, no uploads, files read only in the browser
Resumable and incrementalLarge downloads get interrupted, and portals have bad daysSkip what is already there, refresh provisional copies, retry, recover the session
Explain, don’t hideUsers need to trust the numbersEvery exclusion or correction comes with a reason and a suggested action
Conclusions, not just chartsManagers need to know what to act onHeadlines and action points generated from the data, compared with last year, the zone and All India
Modular dashboardsEach function has its own reports and logicA shared engine plus one module per function, each in its own page; new dashboards plug in
  • 17,626 reports collected and organised for one zone and All India, across 3 tax streams and 37 report months of the GST years.
  • Unattended collection at about 2 seconds per report; later runs fetch only what is missing or provisional.
  • Every file validated, with a completeness check after each download.
  • 11 dashboards from a single folder drop, comparing 14 commissionerates with each other, with the zone and with All India.
  • One-click Excel consolidation per function, in the original report layout plus analysis-ready long-format data.
  • Presentation-ready PDF slides for performance reviews.

A rough estimate for data collection alone: at an assumed 30 seconds per report by hand (five dropdowns, a click, then saving and filing the file), 17,626 reports come to about 147 hours, close to four 40-hour working weeks. The downloader collects the same set unattended in roughly 10 hours of machine time, and nobody has to sit and click. Later runs fetch only what is new or provisional, so keeping the set up to date takes minutes rather than days. Beyond collection, the bigger saving is the comparison work: figures that used to be copied into spreadsheets report by report now line up automatically across units, years and All India.

Officers who compile the figures

No more five dropdowns and a click per report, no renaming and filing by hand, and no copying figures into spreadsheets. Errors are caught before anyone builds on them.

Managers in review meetings

Each function arrives as a short deck with a conclusion on every slide and up to six points for attention, ranked by severity, ready to print as PDF slides.

The zone as a whole

Every unit is measured on the same basis, against the zone, last year and All India, with old and new report formats lined up. Weak spots show up while there is still time to act.

The first version of the downloader and its completeness audit were written in Python. To make the tool usable on any office computer without installing anything, I rebuilt it as a single double-click file with a guided form, live progress, automatic checks and a final completeness report. The analysis side grew the same way: a shared engine first (parsing, validation, charts, slides and Excel export), then one module per function, then a summary that combines them all.

Data acquisition & automation

Automated a login-protected portal without handling credentials. Browser control through the Chrome DevTools Protocol. Retries, session recovery and resumable runs.

Data engineering

A folder and naming schema for 17,626 files. Incremental, idempotent downloads. JSON Lines and CSV logs as an audit trail.

Data wrangling & parsing

Parsed 190 HTML table layouts with merged headers. Stable keys for every figure. Entity matching for unit names.

Data quality & reconciliation

Balance checks and cross-report reconciliation. Outlier and unit-of-measure detection. An explainable issue log.

Data modelling & integration

A unit → zone → All India hierarchy. Old and new report formats harmonised. Double counting avoided across unit types.

KPI design & analysis

Disposal, recovery, win and coverage rates. Growth, target achievement, ageing and concentration. Benchmarking and ranking.

Visualisation

Hand-built SVG charts: bars, stacked bars, lines, bullet charts, heatmaps and Sankey flows. A consistent colour system with light and dark themes.

Data storytelling

Headlines generated from the figures. Severity-ranked points for attention. Slide decks ready for review meetings.

Product & domain thinking

Zero-install, offline, privacy-first tools built for non-technical users, grounded in deep knowledge of indirect-tax administration KPIs.

AreaTools and technologies
Data collectionWindows PowerShell 5.1 packed into a single double-click file, .NET WebSockets, the Chrome DevTools Protocol driving Microsoft Edge
Analytics and dashboardsHTML5, CSS and vanilla JavaScript (no framework), DOMParser for table parsing, hand-built SVG charts, one isolated frame per dashboard talking through postMessage
ReportingExcelJS for the Excel workbook, a CSS print layout for the PDF slides
Data formatsHTML report tables (.xls), JSON and JSON Lines, CSV, XLSX
Earlier versionPython, for the first download engine and completeness audit
WorkflowGit version control
Data Analytics ETL Web Automation Data Quality KPI Dashboards Data Visualisation Data Storytelling JavaScript PowerShell Excel Automation Public-Sector Analytics GST