BI-AS-CODE
From transactional data to trusted analytics.
I built an analytics workflow with tested sales models, a published dashboard and an interactive lineage viewer. The viewer lets visitors trace reporting dependencies through reviewed dbt metadata.
01 / Motivation
Analytics should be engineered, not just assembled.
Business reporting often begins with a straightforward request: turn operational data into useful information. As reporting requirements expand, SQL logic can become duplicated, calculations can diverge, and validation can depend heavily on individual developers.
I wanted to apply software engineering practices to analytics development.
02 / Experiment
A transactional database. A modern analytical workflow.
Using Microsoft's fictional AdventureWorks 2022 sample database, I built a workflow that extracts sales data, organizes it into analytical models, validates business metrics and publishes an interactive dashboard.
I focused on correctness, traceability and repeatable execution. I did not measure reporting speed or cost savings.
03 / Architecture
Separate the responsibilities. Verify the handoffs.
- 01Transactional sourceAdventureWorks 2022 · SQL Server
- 02Repeatable extractionRead-only Python extraction · Parquet snapshots
- 03Analytical modelingDuckDB · dbt staging, dimensions, facts and marts
- 04Quality gatesIndependent reconciliation · automated tests
- 05PublicationReviewed financial aggregate · separately approved lineage metadata · Next.js
04 / Outcome
A working system with verifiable results.
The project includes 23 real-source dbt models, documented sales metric contracts, independent reconciliation and a publicly accessible dashboard. The deployed application serves a reviewed financial aggregate and separately approved lineage metadata. Both are historical snapshots; the application does not execute the pipeline or refresh source data.
Review the implementation and evidence05 / Dashboard
From validated models to a usable view.
These are genuine captures of the published dashboard, based on the historical AdventureWorks 2022 sample. The deployed site serves a reviewed aggregate rather than querying a live database.


06 / Lineage
Trace the models behind the sales summary.
I built the lineage viewer to make reporting dependencies visible alongside the dashboard. Visitors can select a model or source, inspect its details and highlight upstream or downstream dependencies. The viewer uses reviewed dbt metadata, not metadata generated from a production database at runtime.
Explore the lineage viewer Read the lineage documentation
07 / Explore