.yml files, you can automatically visualize how metrics relate to each other in Saved Trees — no manual drawing needed.
For example, total_order_amount is a driver of total_revenue, average_order_size, and total_completed_order_amount — because each of those metrics is influenced by the total order amount. On the canvas, this creates a tree where total_order_amount fans out to the metrics it drives.
Defining drivers
Add adrivers property to any metric listing the metrics that flow into it. You can reference metrics from the same table by name, or from other tables using the table.metric syntax:
- dbt v1.9 and earlier
- dbt v1.10+ and Fusion
- Lightdash YAML
total_order_amount → total_revenue, total_order_amount → average_order_size, etc.).
Cross-table drivers
Drivers don’t have to live in the same table as the metric they drive. Use thetable.metric syntax to reference a metric from another table:
How drivers appear on the canvas
- Automatic: Driver edges appear as soon as both the driver and target metrics are on the canvas.
- Read-only: You cannot delete or modify driver edges from the UI — they are managed through your
.ymlconfiguration.
Driver edges cannot be removed from a Saved Tree. If you don’t want a driver edge to appear, remove one of its endpoint nodes from the canvas.