Skip to main content

Metric properties

Metrics define measurable quantities that you can query through the Semantic Layer. You define them in different places, depending on your dbt version:

  • In a model using the latest YAML spec. Top-level metrics: list on a model that has semantic modeling enabled, alongside semantic_model: and columns:. Available in the dbt platform Latest release track and the dbt Fusion engine.
  • In the standalone legacy YAML spec. Refer to Creating metrics for more information.
Availability

The latest YAML spec is available in the dbt platform Latest release track and the dbt Fusion engine.

Support in dbt Core is planned for v1.12.

For more information, refer to Migrate to the latest YAML spec.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0
Loading