Technical perspective

Engineering analytics as a reproducible system.

I built and validated a modular workflow from transactional extraction to modeled sales metrics, automated quality gates, a published dashboard and a dbt-derived lineage viewer.

System architecture

  1. 01
    Transactional sourceAdventureWorks 2022 · SQL Server
  2. 02
    Repeatable extractionRead-only Python extraction · Parquet snapshots
  3. 03
    Analytical modelingDuckDB · dbt staging, dimensions, facts and marts
  4. 04
    Quality gatesIndependent reconciliation · automated tests
  5. 05
    PublicationReviewed financial aggregate · separately approved lineage metadata · Next.js
Implemented workflow. The deployed application serves a reviewed financial aggregate and separately approved lineage metadata. Extraction and modeling run outside the application; it does not run SQL Server, DuckDB, dbt or live ingestion.

Historical extraction validation

Evidence at the source boundary.

31,465Sales orders
121,317Order lines
0Duplicate lines
0Orphan lines

Historical extraction baseline; these are not current dashboard filter totals.

01 / Architecture

Design around explicit boundaries

I separated source extraction, analytical modeling, validation and publication so each stage could be inspected independently. SQL Server supplies the historical fictional source; the deployed Next.js application consumes a reviewed aggregate rather than hosting the pipeline.

Read architecture and project overview

02 / Extraction

Capture a traceable snapshot

Read-only Python extraction from nine contracted AdventureWorks tables produces local Parquet snapshots and manifests. Validation checks source relationships and recorded totals before the analytical layer consumes a snapshot.

Read extraction and snapshot documentation

03 / Modeling

Make metric definitions explicit

The real-source dbt implementation contains 23 models across staging, six dimensions, two facts and six sales marts. Its metric contracts distinguish shipped-order eligibility, monetary precision and non-additive product/category order counts.

Read dimensional modeling documentation

04 / Quality

Test the data, not only the code

A transformation can execute without producing correct business results. I combined dbt model checks with independent Python reconciliation against Parquet inputs, and used regression and deliberate corruption tests to exercise selected failure paths.

Read quality and reconciliation documentation

05 / Publication

Publish a reviewed artifact, not a live database

The public dashboard uses a pinned AdventureWorks 2022-derived aggregate with fail-closed source validation. SQL Server backups, raw snapshots and DuckDB databases are not deployed. The dashboard is a historical snapshot, not a live reporting service.

Read dashboard publication documentation

06 / Lineage

Inspect a focused dependency graph

The lineage viewer follows mart_sales_summary through six dbt models, two sources and nine direct dependencies. Edges come from dbt model/source dependencies, not inferred SQL joins or test relationships. A custom React Flow desktop graph supports selection and All, Upstream or Downstream highlighting. A native node selector replaces the graph on mobile; an independent keyboard-accessible node list remains available on desktop if the graph fails. Selection and highlighting use shareable URL state with browser Back and Forward support.

Read the lineage implementation and safeguards

07 / Reproduction

Make the work inspectable

The reproduction guide separates running the dashboard locally from reproducing the full-source pipeline. It documents prerequisites, commands, validation and limitations. Full-source reproduction requires Microsoft's sample database and validated local snapshots. A fresh full-source run is separate from this documentation.

Read the reproducibility guide

08 / Limitations

Be precise about what is proven

The dataset describes a fictional business. The project is not a production benchmark, an ROI study, or a demonstration of live ingestion. The reviewed aggregate has a conditional redistribution assessment; asset-specific licensing certainty is not claimed.

Read data provenance and redistribution policy

Review what reaches the public application.

The dashboard and lineage viewer use separately reviewed publication artifacts. Lineage contains only a limited, approved subset of dbt metadata. Schema, integrity and approval checks reject unapproved metadata at build time and runtime, with no fallback to sample metadata.

The public application excludes raw SQL, full dbt manifests, raw records and analytical databases. The lineage snapshot is historical. Refresh requires a new review; the application does not refresh it continuously or execute dbt.

Explore the lineage viewer Review metadata approval and packaging safeguards

Published artifact

Inspect the final reporting output.

The captured Sales Trends view illustrates how the validated, precomputed sales metrics are presented. This is historical sample data, not a live-ingestion demonstration.

AdventureWorks Sales Trends with Data lineage in the navigation and a monthly chart of net line sales and order counts on separate axes. All territories and categories are selected.
Sales Trends. The same historical sales dataset (May 2011 to June 2014), grouped by month. Net line sales use the left axis; order counts use the right axis. View full-size Sales Trends screenshot

See the published result.

Explore historical AdventureWorks sales metrics with documented definitions and sample-data provenance.

Open the interactive dashboard