How Omni syncs with Databricks metrics views (two-way integration)

Product video · June 17, 2026 · 6:27

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Hello everyone. My name's Peter. And today I'm going to walk you through Omni's two-way integration with Databricks Metric Views. Our two-way integration allows you to sync Omni semantic model with metrics defined down in your Databricks warehouse within Metric Views, but also allows end users to create metrics directly in Omni and then push them back to Databricks Metric Views.

  2. So you're always keeping your metrics in sync no matter where you're interacting with the data. If that's in within Omni's UI using our AI agent Lobby, building dashboards, or even leveraging our MCP server in cloud code or our CLI, or if you're interacting with Genie within Databricks, always your users are going to get trusted insights into their metrics that are going to be governed across your entire organization.

  3. So let's start in Databricks and we can see a metric view here that I have defined. I am This metric view is based on an order items and users table, which is based on a fictional e-commerce company. We can see a few measures that we've defined here with a bunch of dimensions. Within Omni, we have connected this to our Databricks warehouse and we've actually pulled these metrics in into our semantic model here, where we can see that these are defined off that metric view.

  4. You can see in this this comment here it says these are defined in the data warehouse. So we can start interacting with these data the the these definitions directly in our workbook. So if I grab some date dimensions and then maybe say a total sales, we're going to craft the query with the same governed metrics in the same business logic definitions as we would if we were interacting with them directly in our Databricks environment.

  5. Now, Omni has a build-as-you-go workflow that allows users to create metrics on the fly as they're doing their analysis right here within the workbook. So if I want to create a new metric, something like a new sales price sum. So rather than total sales here, I want to look at total sales um, for completed orders. So, I can edit this field directly in my UI.

  6. You know, I am a business analyst. I understand what metric I want to create here. So, I'm going to add a filter into this and say look at, uh, order item status. I only want to look at completed orders, so I can create that metric right here. And I'm going to update that right here. I now have this new metric with that completed view.

  7. I'm actually going to change the label to be, uh, total revenue for completed orders. And I'm going to update this. Now, within Omni, we have a, uh, true developer workflow. I've made changes directly in this workbook. You can see I have changes already staged right here within my workbook model. And then I can promote them as an admin directly to our governed shared model.

  8. We can also integrate with Git, and we can actually have our open up a pull request with our data team, so they can approve all of these changes as well. So, I'm going to promote this right now to our shared model. Now, within our model, we have this metric state. It it actually built into Omni semantic layer.

  9. But, this is just isolated in Omni right now. And to prevent that metric definition drift between the two tools, we need to have a two-way integration. So, yes, we can pull those changes in, but we also want to push those changes out. And to do that, we can leverage Omni's new skill that you can run within Claude code, Genie code, Codex, whatever your AI agent tool of choice is, and actually push those back to to Databricks.

  10. So, I'm going to open up my Claude code, and then I'm going to leverage my Databricks skill and say, uh, uh, update the existing existing metric view in Databricks called order items you see metrics. Um, so on. With the new measures added to deeper items, you see metrics topic in Omni in the Let me grab my model ID over here.

  11. Model this will be in the Omni demo. Databricks schema in the And I'm going to grab my warehouse ID over here. warehouse Now what it's going to do is take that metadata that we have within our metrics view or in our Omni topic and it's going to construct an alter statement within Omni SQL or within Databricks SQL.

  12. As it's doing this, I'm going to let this run and we will come back and we will see that it's going to create this and we're going to verify what it's created keeping that human in the loop so we can ensure all these metric definitions are going to be the same. So I'll pause and be right back.

  13. All right, so here we can see that it's adding that sales price sum to as a new measure measure and we're going to run this alter statement. So it's going to create this with this new measure right here and that's Databricks syntax where here you can see that sum sales price filter where status equals complete. It's a little bit different of how it actually looks within Omni.

  14. So in Omni how we define what we call filtered measures is slightly different so we need to be able to parse through that and actually define it as it is. So here you can see where we have that different type of definition where we do filter status is complete. So let's go back as this is creating this and I'm going to hit yes and it's going to run that and it should actually populate that in our Databricks metrics view.

  15. All right, now it said it's all completed and we can go back to Data bricks. And I am going to refresh my page. And we should be able to see our brand new metric right here for total revenue completed orders and that's here for me to use directly in Data bricks. Really this is a perfect way for users who are migrating off legacy tools who do not support metrics views to be able to have a two-way integration to keep all your metrics in sync across all of your tools to ensure that your users are getting trusted insights no matter where they're interacting with data.