Omni + Databricks: Leverage Unity Catalog metric views in Omni

Omni · September 18, 2025 · 5:19

Transcript

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

  1. Hello everyone. My name is Peter Whitehead and I'm a solutions engineer at Omni. And today I'm going to walk you through Omni's integration with Unity catalog metrics. Omni can integrate with data bricks uh metrics views in many ways. Simplest it can just query those metric views directly via SQL. So here you can see we have a seek simple SQL query where we have a metrics view that has a definition for a month field and a total sales um measure as well.

  2. And we can simply just query that directly here. We'll be able to visualize that and chart it directly in Omni where then we can actually put this directly onto a dashboard. So you can query those directly from Omni. Now the first thing first class integration is when we set up our data bricks connection. We can toggle this uh functionality right here to enable data warehouse metric view integration.

  3. This is going to sync Omni semantic layer with the metric view semantic layer that is being managed centrally in data bricks. So we're going to pull those definitions directly into Omni. So we can query them directly as you would in a point-and-click UI with our Excel functionality, SQL or with our AI functionality. Now I'm going to go back to my model and I'm going to refresh my schema here.

  4. Um when I refresh my schema, we're going to pull those definitions of a metric view that we have defined in my Unity catalog um into Omni. We're going to render it as a topic. A topic is you know the same logical structure as a metric view where we're going to have a couple tables which we call views as well as joins to other views as well.

  5. Um, and then we're going to layer on descriptions that we can leverage from the comments in the metrics view uh definition. And we're going to be able to start layering on top of some of the functionality in Omni like drill fields or other parameters that you're going to get at a a best-in-class BI solution like Omni. Now, here we can see those definitions are actually we're calling out are coming directly from that metrics view.

  6. Now, what I'm going to be able to do is go over to datab bricks and update this metrics view that we're pulling from. So, I'm going to go over and edit here and I'm going to add a new measure. Let's add that here. We'll call this a say something like an average sale price. And I'm going to create the expression that is G.

  7. I'm going to save this. And when I close this out, maybe I'll add another comment on here and say this is the average of say order sale price. We'll save that. Now let's go back to our omni semantic layer and I'm going to refresh this model and we are going to pull those new changes directly into our omni semantic layer.

  8. This is really demonstrating how your data engineering team can centrally man manage those metric definitions in one location. Then Omni is going to be able to pull those directly into its semantic layer for your analyst to quickly be able to start visualizing and interacting with those datas in a BI solution like Omni. So here we can see how we can just pull in the that metric definition really quickly.

  9. Now Omni is not only a one-way direction integration with um metrics views, you know, we can actually generate that DDL from Omni semantic layer to create those in your Uni catalog as well. So I'm going to actually create a brand new uh metric view based on this topic file that I have created. We have a couple joins here, a few fields, and I'm going to actually push this to data bricks so that we can essentially manage something that we've created in Omni now in data bricks.

  10. So, I've created a uh simple app. This is just integrating with our API um where that's how we have that endpoint to create this metric view. And all I need to do is add a few things. It is an Omni URL, an API key, our model ID directly tied to our Omni semantic layer, and then our topic that we are going to generate as a metric view.

  11. And then I'm going to give it, you know, parameters like the catalog and schema so it knows where to create that gen uh that that DDL function. So I'm going to enable joins and then I'm just going to generate data brick SQL. And we can see here that it's actually just generating this DDL function for us to create this metric view in um our uni catalog.

  12. I'm going to copy this and I'm going to go over here to my data bricks console and I'm just going to paste that in here and run it. And this should here create that metrics view for us in that schema. So if I go over to omni demo ecom, we'll be able to now see that um metrics view in here for us.

  13. Where did it create it in demo? Yeah, right here. So, that's how we can easily create those metric views right here within AMI. If you'd like to learn more about AM's integration with data bricks and metrics views specifically, we'd love to continue the conversation. So, please reach out.