Databricks said it added SQL joins between metric views on Dec. 3, allowing AI agents to combine independently governed business metrics while avoiding duplication that can produce incorrect totals.
It announced the change in its blog post, “Beyond the semantic model: composable metrics for AI agents.” The change lets users combine metric views with other views or tables when running a query.
The authors examined how queries can combine measures from separate sources, such as sales transactions and support tickets. A conventional join can count the same transactions or tickets more than once when calculating totals.
In one example, a conventional query returned total sales of 900 instead of 300 because it counted sales across six joined rows. The Databricks measure function returned the correct sales total and counted three tickets rather than six.
The function prevents duplication caused by joins but does not change which records a join includes. Future support for SQL joins within metric view definitions will allow more flexible definitions combining measures from multiple sources.


