
Omni demo ▶️ Just-in-time data modeling
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
hi this is Connor from Omni omni's bi platform enables something we like to call Just in Time data modeling which is data modeling that happens as you're exploring and analyzing data rather than data modeling in a siloed process before or after your analysis this provides you the flexibility to get answers fast while still creating reusable governed metrics for your team and I'd love to show you how this works in on me so let's say you're looking into your company's Revenue over time you might start by going to your orders table grabbing the total revenue column and then grouping that by month to see that Trend I'll add a sort here pop open the chart View and I started with the line chart but I'll make
that a bar chart to see that a little bit easier looks like revenue is doing well it's up and to the right we always like to see that um but we probably want to know a little bit more here like why is revenue changing for example is revenue being driven by users placing their first orders this month is it users who have already been customers for a while it'd be helpful to cohort our users somehow maybe by the month that they first place their order to see who's driving these changes in Revenue to get those cohorts we'd need to take a few steps starting by taking the user ID per order and grabbing their minimum order date saving that as a query view or CTE
somewhere in our data warehouse and then joining that back to our main orders table or your orders topic none of those steps are particularly hard or complex but if you have to drop down to your data warehouse to DBT to your semantic layer deal with poll requests merging permissions all of that it can slow you down to just see those insights and you're not even sure if those insights will be good yet you just want to see the results first and then decide if you want to make that real piece of your data model and that's what we mean by just in time data modeling and that's what we set up Omni to be able to do so an omni this flow ends up being
quite lightweight so I'm going to start us off with a blank canvas here I'm going to grab the user ID I'm going to use a quick aggregation to get the first order date per user and with that I'm going to use omni's Save query as view flow so what this lets us do is create sort of a temporary table in our semantic layer in Omni that you can reference just like any other table that you're pulling from your data warehouse I'll give that a name we'll call it user first order facts and now that we have that table Omni is going to be really intelligent it knows that we created this table based on the user IDE ID field from order items and so it's
going to automatically recognize that join for us here now I'm going to just quickly add it to our topic so we can pull from it there we go and now we can sort of create that same table but add this additional layer of the user's first order so I'm going to grab our total revenue column again grab the month and then I'm going to add from the this new table we just created the month that the user had first placed their order if we flip back to the Chart view we can see the total revenue per month but Broken Out by when the users first place their orders and we can see that we generally do a pretty good job of retaining users over time
but most revenue is driven by new customers so the cool thing here is that we've been doing all of this work in a workbook sandbox no one else is going to see it unless I share it with them it's a complete safe Zone it's not going to interrupt anyone else's work but this sort of thing might be useful to others so to make it accessible to others when they're doing their own analysis we can promote it to the shared model omni's shared semantic layer that way other people can access it when they're doing their own analysis so I'm going to pop open our workbook model changes this section here I'm going to hit promote to shared and if I pop open a new workbook here
we'll see that that table doesn't show up quite yet but if I hit refresh we'll see that user first order fax table will come in here so anybody who's starting a net new analysis has access to that table if we want to harden this into our data model even further we can actually push this table also down to DBT so I'm going to go back to our original tab I'm going to hit preview to pull that table open and then in Omni I'm going to hit model push to DBT I'll give that new model name we'll call that e first order facts I'll hit save and what this is going to do is open up a pull request in our git repo from there you
can use whatever cicd process that your organization has set up to uh create that new DBT model and you can see that SQL that Omni is generating and going to use to create that DBT model down here so so hopefully this flow helps show you that with just in time data modeling you can create your data model as you're building in your bi tool instead of doing it in a separate process that's what Omni was built to enable fast intuitive data modeling that meets you where you are while still being able to promote it to the rest of your organization