Author a MetricFlow conversion metric in YAML to track funnel conversion rates between two events

domain: docs.getdbt.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure you have two simple or count metrics — one representing the base event (e.g., signups) and one representing the conversion event (e.g., paid_signups) — already defined in your semantic models
  2. Add a new metric entry with type: conversion and specify the required conversion_type_params keys: entity (the identifier tracking user paths), base_metric, conversion_metric, and calculation (e.g., conversion_rate)
  3. Optionally set window to limit the time window within which the conversion must occur (e.g., window: 7 days)
  4. Use constant_properties to match attribute values between the base and conversion events when you need to constrain the funnel by a shared property
  5. Query the metric with dbt sl query --metrics paid_signup_conversion --group-by metric_time__week to validate results

Known gotchas

Related routes

Create a MetricFlow ratio metric in YAML to express a rate such as click-through rate from two existing measures
docs.getdbt.com · 5 steps · unrated
Define a MetricFlow semantic model in YAML with primary, foreign, and unique entity types to enable automatic join resolution
docs.getdbt.com · 5 steps · unrated
Configure a MetricFlow time spine in YAML (dbt v1.9+ format) to support time-series metric queries
docs.getdbt.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans