MetricFlow centralizes metric specs and SQL construction in dbt
Build your metrics
dbt intro to defining metrics with MetricFlow as the Semantic Layer component that builds SQL and enforces consistency.
Based on
Build your metrics | dbt Developer Hub
The page positions MetricFlow as the Semantic Layer piece that constructs SQL and defines specs for semantic models and metrics. Teams define metrics in the dbt project, develop in CLI, Studio IDE, or dbt v1, and use MetricFlow commands to query and test. Dynamic querying in downstream tools is noted for Starter, Enterprise, or Enterprise+ accounts. A Semantic Layer reference covers configuration for models, metrics, and dimensions.
Data teams use this to keep metric logic in one governed project rather than reimplementing measures in each warehouse or BI layer.
Centrally defined metrics are shared meaning: the same semantic models and metric specs feed SQL generation and consumer tools, which is how governance of company metrics becomes enforceable across the stack.
Put this to work on CoreModels
Related connectors and recipes
See all connectors →Take the next step
Try CoreModels, talk with our team, or explore more resources.