I got super inspired by a Genie Agent internal workshop today. Databricks clients (myself included) are sometimes skeptical about the calculations that Genie returns. For example, they say that the total sales revenue for the month June is wrong.
But how is this number really calculated? And is Genie’s calculation really wrong?
Not necessarily: it depends whether you want to include, for example, returned orders. Whether a returned order still counts as revenue is ambiguous and, in the end, is a business decision. We must agree on a specific definition and store it somewhere. Then Genie will consistently return the correct answer - following that definition.
This takes place in Metric Views inside Unity Catalog.
Today we created such a metric view, and indeed, we got consistently good results.
I’ll definitely be implementing Metric Views in my own Genie Agents that I use for my activity tracking and pipeline management.