Demo: Calculations in Omni

Omni · March 11, 2025 · 10:08

Transcript

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

  1. hey this is Connor from Omni I wanted to show you how you can use Excel formulas to do calculations and Analysis in Omni we know most folks are comfortable using spreadsheets so we wanted to make sure that that's a core interaction path in Omni as well whether you're a finance or Ops Excel wiiz or you're an analyst or developer who just wants to do something quick without using SQL and without jumping into your data model okay so let's start off in our workbook interface I'm going to grab a few fields from the field picker on grab date I'll grab total revenue and total cost and what I want to do here is just a really simple profit metric by subtracting the total cost from the

  2. total revenue so go ahead and insert the column to the right and I'll just do B1 minus C1 and there we go there's our profit metric I can rename it to be profit as well and you'll see that this is one:1 Excel syntax so it's exactly the same uh formula that you would use in a spreadsheet we can also do more things here another common one would be a row over row calculation so in this case like a day over day percent change so if I wanted to do that I would just add a new column I'll start in this second cell here and I'll do D2 minus D1 over D1 there we go there's our day of day percentage change um if you're familiar

  3. with SQL you know that this can be a real pain to do with window functions so it's nice just to have the option to be able to do it with um spread sheet formulas you can also use AI to help you write these formulas so over here we have this little AI calculations helper so if you want some help writing your formula you can just type in a prompt here so if I wanted to write that same calculation I could just do uh calculate the day over day percent change in column D and there we go Excel is going to write or AI is going to write that Excel formula for us one thing I wanted to point out too is that this uh these

  4. calculations are uh interoperable with other operations in Ami so for example if you wanted to Pivot this by order status you can see this calculation being done by these order status pivot groups let me reorder there so it's a little easier to see um and you can see that this profit metric is being calculated by order status Pivot Group so this is the profit for orders that are currently processing under the hood this is all SQL that's being generated so this looks a little bit complicated but we're just translating Excel syntax into um SQL and then we're writing that down to your database so if you ever want to see the raw SQL that's being written down to your database you can pop up in

  5. this inspector here and because we have this SQL understanding of the fields and the calculations you're doing we can actually promote these metrics so that they exist Beyond just this initial calculation that you've done so let me go ahead and clear these out to make it a little bit easier to see and let's say I wanted to calculate this profit metric um to be more broadly available this profit metric might be um helpful to others so I can go ahead and hit promote to workbook here and that's going to add that profit field to my field picker here you'll see it's even um defining this as a SQL metric where it's taking the total sale price or the total uh Revenue field minus the total

  6. cost field and if you wanted to go even further and if you have the permissions to do this you can also make it so that this profit field is available in your shared data model so that means anytime someone opens up a new workbook they'd also have access to this profit field so all these features make it so that you can quickly iterate on your data and then push what's useful back to the rest of your organization or just back to the workbook so that you can use it as you're doing more analysis one more use case I wanted to show here is joining data between tabs so if you're familiar with spreadsheets you might do this with xlookup vlookup even an index match here

  7. or there um and you can do that using X lookup in Omni as well so here we have our profit data but let's say I wanted to look at this data alongside our user acquisition data for example so I can open a new tab here and I'll go to our user acquisition topic which is a curated set of data around user acquisition and I'll grab the created ad date as well as the users count and then actually let me add a filter as well so it's on the same uh time as the other query okay great so now uh we have these two data sets and it's a little bit difficult to join these uh two results it's a little bit awkward to join like

  8. on a date um when these tables don't have much other um have much of an other relationship so um here we can just do X look up to join those two uh results together and then we can plot them on the same chart so I'm going to go ahead and insert a column to the right here and I'll do X look up I'll look up this date in this query in the First Column and then I'll grab the result from the fourth column which is our profit field and there we go there's our profit calculation um and then I can move to the Chart visualization and see these plotted side by side and I'll actually just move the profit to the right side so that

  9. we can see them on the same axis um and we can see that they generally look correlated so that's just a few ways to use these calculations in Omni we have a bunch more functions and formulas you can check out in our docs um and you'll notice that a lot of these are very familiar from spreadsheet so you can bring those workflows into Omni as well I also wanted to take a second to show you some of our team's favorite applications of calculations because they open up a bunch more um kind of fun use cases that you can do one of them is visualizations so one of our designers Sarah recreated a custom dashboard using markdown in Omni she created this really cool um user

  10. and average sales Trend dashboard and this tile card here is actually built off of calculations so let me open up that tile um and here's the tile that was generated but under the hood all those metrics are actually um calculations so if I scroll here there's Min there's Max there's a few subtractions there's even some if statements here that's being used to uh Define what the visualization looks like and then if I pop up in the chart view itself let me make this bigger if I scroll down here you can see that these those results those calculations are actually being referenced in the markdown dynamically and you can uh use this little helpware that we've built so that you can automatically insert the results from

  11. your results tab into the visual visualization using markdown um and a few more fun use cases I wanted to show you are with the AI calculations heler that I showed you earlier so let me pop open a new time and I'll show you a use case where you can identify outliers using calai it's one of my favorite use cases I do create.

  12. date and total revenue and let me increase the uh number of days here just so we have a little bit more data to look at so here I'm going to ask AI to help me Identify some outliers so I'm going to say uh create a Boolean field that tells me if each day's sales is an outlier or not awesome so it wrote this if statement for us um using the actual definition of an outlier I probably could have figured out how to write that but it's really nice to have ai just do that for me and then I I can actually visualize this so if I make this into a scatter plot you can see those outliers plotted very clearly here I could change the

  13. color of these to be even more obvious so let's do red and green and now we can see those outliers um very clearly on this chart the last thing I wanted to show you is a very kind of unconventional use of calculations um let me pop open a new tab I'll go to our user acquisition data and I'm going to grab State actually and I'm going to filter by us okay awesome um so one manual use case you might find yourself doing is uh kind of translating data from one thing to another and it might be a lot of manual work to do that in this case you might need the two-letter abbreviation of each state um and that's a little bit tricky to do

  14. or hard to find a data set for and you can ask AI to help you do this actually so um might take a little while to figure out the right prompt but here we can say using an if statement give me the two s abbreviation of each state we'll give that a second to run and there we go um I wrote this very very long ifs statement converting each of these State full names into two letter abbreviations and you can imagine if you had some data in a spreadsheet somewhere that was based off of the two letter abbreviation you could bring it into Omni and then do this conversion so that you could actually join the tables together okay so that was just a brief

  15. overview of how you can use Excel calculations in Omni um we're excited to continue building these spreadsheet workflows um one of the projects we have going right now is bringing real spreadsheets into on me so you can see that this looks and feels just like a spreadsheet and then you can do some cool things to actually make it look and present like uh financial statement or other use cases that you might have um and this is coming very soon if these Excel style CS are something that you and your team would be interested in please reach out to us we would love to show you more