Description
MetricFlow is a semantic layer for defining, building and maintaining metrics in code. You describe your metrics once, and MetricFlow compiles those definitions into clear, reusable SQL, so the same metric gives the same result however it is queried. It is built to analyze data by attributes, which are called dimensions. Its query planner treats each metric request as a dataflow, optimizes the plan, and translates it into SQL for the engine you use. The abstractions cover the logic that is hard to write by hand, such as multi-hop joins between fact and dimension sources, complex metric types including ratio, expression and cumulative metrics, and aggregation to different time granularities. The project is distributed under the Apache 2.0 license. It is developed as part of the Open Semantic Interchange initiative, a collaboration among technology companies and data practitioners that aims at a shared open standard for defining and exchanging semantic information so that AI and BI tools can interoperate. The repository includes a changelog and the documentation that explains how to get started with your own metrics.…
Highlights
- Define metrics in code once, reuse everywhere
- Compiles definitions into reusable SQL
- Multi-hop joins between fact and dimension sources
- Ratio, expression and cumulative metric types
- Aggregation to different time granularities
Ratings & Reviews
No ratings yet
Be the first to rate Metricflow.
People also visit
Metricflow FAQ
What is MetricFlow?
A semantic layer that lets you define, build and maintain metrics in code, then compiles them into SQL.
Who is it for?
Data teams that want metric definitions in code so the same metric returns consistent results across queries.
Is it free?
Yes. MetricFlow is open source under the Apache 2.0 license.
What kinds of metrics does it support?
Ratio, expression and cumulative metrics, plus aggregation to different time granularities.
Can it join several tables?
Yes. It handles multi-hop joins between fact and dimension sources.
What is the Open Semantic Interchange initiative?
A collaborative effort among technology companies and data practitioners to create an open standard for exchanging semantic information between AI and BI tools. MetricFlow is developed as part of it.
Where do I find the docs?
The repository links to MetricFlow's documentation, which explains how to get started with your own metrics, and to its changelog.
What are the best Metricflow alternatives?
Popular alternatives to Metricflow include Metabase, Datalens and Tellery. See all Metricflow alternatives





