Demo: Taking a hybrid approach to data modeling with Omni and dbt

Omni · January 30, 2025 · 4:22

Transcript

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

  1. hey this is Connor from Omni I'd love to show you how to take a hybrid approach to data modeling with Omni and DBT so let's say you're a data analyst and you're looking to build a monthly sales overview table for your Finance team you're not sure exactly what it should have yet so you want to start by exploring the data a little bit first you might start by going to your order items table and grabbing the month that every order item was purchased then from here you want to see Revenue per month so you can scroll down find that sale price field and sum that Omni makes that really quick and easy with that button there and there you go we can sort this by

  2. month descending order to see how revenue is changing over time and then we can format the sale price some field with that little currency button just to make sure that the formatting is nice and clean from here you might be thinking of other metrics that you want to add for your Finance team that would be useful one metric Could Be the month-over-month Change just so Finance can see how re Revenue tends to change month over month as they're making their projections for next year to do that in Omni you can just hit this add field button give that field a name we'll call that month of for month change and then here you can write some SQL code you can reference other fields I'm going

  3. to cheat a little bit by copy and pasting some code there we'll hit add and then we get this nice month over Monon change field and ALT together we have this very simple monthly sales overview table so now this table exists in Omni but let's say you want it to exist in your database and you want to materialize this data through DBT to do that Omni makes that process very easy you can just do model push to DBT we'll give that a name we'll call this monthly sales uh testing and Omni is going to automatically generate a pull request for you you can open that up we'll just call this testing we'll create that PO request it's going to check if it can merge that

  4. automatically it can awesome so from here we can head over into DBT and see how that code is getting generated pop open the develop Tab and here we should see that it's going to prompt us to pull from remote since we just pushed some additional code in we'll pull that in and we we should see that that table we just created is going to pop poate in this models section which it did so now we can see the SQL code that Omni generated for you just based on that query but once it's in here you can play with this however you'd like you can change a column name you could specify your database and schema connection whatever you uh want to do to uh clean

  5. up your model at all from here you can save that once that's done you can do a DBT run we should see that that table that we just created that monthly sales testing model is getting created successfully we'll give that a second to run the other models that we've created in DBT and looks like that succeeded there we go so now we can head back into Omni and check that the table is actually available for us to use from that database so we can go into our model and from here we can hit refresh schema so that's going to pull in any fresh data any fresh models that are coming in into our database and we should see that that new table that monthly sales

  6. testing table is going to come in right here there we go so now this table exists in Omni and you can play around with it just like any other table that you might be pulling from your database here at Omni we find that this is how data modeling work feels most natural you start with a general idea of what you want to build maybe some questions maybe a team you're working with you explore the data a little bit first and then then you have a better sense of what model you want to create Omni then makes that process really easy by letting you play with that data in our UI and then pushing that directly down to DBT our tool makes that process as seamless

  7. and easy as possible so that you can really maximize the benefits of a hybrid approach you can both work quickly while also building trusted models for your team