00
DAYS
00
HRS
00
MIN
00
SEC
SEE WHAT's NEW IN SIGMA 12/12/2024
A yellow arrow pointing to the right.
A yellow arrow pointing to the right.
Kevin Marr
Kevin Marr
Product Management Lead
No items found.
March 30, 2023

Announcing Metrics in Sigma

March 30, 2023
Announcing Metrics in Sigma

A BI classic, reimagined for the spreadsheets world

We’ve finally done it: Sigma has metrics! You can now encapsulate any aggregate calculation—such as profit margin, churn rate, or net present value—into reusable fields that you can drag and drop into your workbooks.

Many had wondered how it was even possible for Sigma, a BI tool, to have been adopted by the likes of DoorDash, US Foods, and Blackstone without metrics. Don’t all BI tools require you to define metrics before being able to run any reports at all?

The answer is that Sigma isn’t just a BI tool. Up until now we had been strictly focused on building out the first-ever spreadsheets interface on top of live cloud-scale data. Our customer adoption has proven that there is a massive amount of value in doing so, even without metrics. After all, there are over a billion spreadsheet users out there in the world, and Excel and Google Sheets don’t have metrics. 

The popularity of the interface allowed Sigma deployments to grow rapidly. And our customers increasingly were looking for ways to reuse business logic and make data analysis more consistent and scalable among their growing user bases. We knew that it was finally time for metrics.

The challenge was: how do we go about introducing a classic BI concept—a metric—into the spreadsheets world?

Founding Principles

To achieve that, we first decided on a few founding principles:

1. Metric definitions should be owned by subject matter experts, not engineers. Defining a metric should be as easy as writing a spreadsheet formula. 

2. Metrics should be optional, not required. They should save you time, not get in your way. 

3. If you update a metric, it should update everywhere the metric is used. Metrics should help your team speak the same language as the business evolves.

It took quite a number of iterations in the development process to get this right, but last month we arrived at a place we’re really proud of. Without further ado, let’s jump in.

How Metrics in Sigma Work

Creating Metrics

Creating a metric is really simple. All you need to do is type in a formula and give it a name. The formula editor uses the same suggestions, auto-complete, in-product documentation, and field coloring that our users are accustomed to from our workbook editor. 

A computer screen with a calculator and a formula.
Our metric formula editor. I don’t miss editing raw SQL from my analyst days.

Any Sigma functions are valid in a metric definition—conditional, mathematical, textual, aggregate, even lookups. The only requirement is that all functions should at some point be rolled into an aggregate function. For example, this formula defines a new metric I’m calling “Total Revenue This Month”:

A screen shot of a computer screen with a total revenue for the month.
Here, I compose a metric using a date/time function, an arithmetic operator, and a conditional aggregate function. There’s a lot of power here.

You can also add some nice optional fields, like a description or a format to be applied everywhere the metric is used. We also show you a quick preview of the result. To save it, you just click the Publish button. Easy peasy!

Using Metrics in Workbooks

This metric we created will now be visible in any workbook that uses the table or dataset associated with it.

In any workbook that uses this data, I can browse the available metrics. 

Hovering over a metric displays its definition as well as its formula, so that workbook analysts can be sure that the metric does what they think it will. Trusting data is key to adopting it.

To bring it into your analysis, you just drag the metric in. You can drag it into a table’s grouping level, a pivot table’s Values section, or a chart’s Y-axis. The important thing here is that you don’t have to type anything or remember how the metric was defined—that work has already been taken care of.

An enterprising analyst can also use metrics as a starting point from which to spin off bespoke explorations. Any metric can be referred to from another column’s formula via [Metrics/Metric Name]. And of course, we will suggest and auto-complete them for you in the formula bar. 

Here, I am in the process of calculating the average order value in my workbook using the existing Total Revenue and Total Orders metrics.

Changing Metrics

Inevitably there will come a time when you need to edit a metric that’s already been incorporated into many workbooks. We wanted to make sure that doing so wouldn’t result in any broken content, which we found was a big issue in some other tools. When you edit a metric in Sigma, the update just flows through to all of the places where the metric is used—even if you change the name of the metric! No broken stuff, and no tears.

Take Metrics for a Spin!

Metrics are now in Beta, available for every Sigma user. Take them for a spin, and start building up your organization’s lingua franca for how critical KPIs are defined.

To learn more, check out our documentation.

WINTER PRODUCT LAUNCH