Metrics Store in Action

With a tutorial using MetricFlow, Python, DuckDB, dbt, and Streamlit

Paul Kinsvater
Towards Data Science
11 min readFeb 23, 2023

--

The metrics layer defines all critical business metrics and dimensions centrally. It translates metric requests into SQL, abstracting away implementation details. Image created by the author.

There is a lot of literature on Modern Data Stacks (MDS)—most discussions are around storage, ingestion, transformation, and presentation. Today we focus on metrics, one of the many other MDS categories.

Some say that metrics are one component of the semantic layer — see this Airbyte

--

--

I am a statistician (Ph.D.). And I write about data minus the hype. Anything that adds tangible value to the real world.