Metric Sheets
Holistics Metrics allow you to define values to be measured, presented and monitored regularly, and easily presented them in different form and time period.
Metrics Sheets#
Multiple metrics can be grouped together into a Metric Sheet, giving you a bird's-eye view of all those metrics. Headers, sub-headers can also be used in the sheet to make it easier to organize the selected metrics.
## Metrics In DashboardA single metric can be added as a widget in a Dashboard to allow dashboard consumer to view the metric at a glance. You can add metrics to dashboard as metric widget. And it will be displayed as below.

Creating Metric#
To define a metric, go to Metrics, New Metric, and provide necessary details:
- Metric Name
- Query: this is the query to calculate the metric value:
- It needs to contains the string
{{time_where}} - The query needs to return a single number value
- It needs to contains the string
- Time Expression: Provide the SQL expression to point to the date field in your table.
Example#
For example, we define a simple "Successful Orders" metric based on the underlying orders table
- Metric Name: Successful Orders
- Time Expression:
created_at::date(there should be acreated_atfield behind) - Query:
Depending on the time period being queried, Holistics will translate {{time_where}} to the correct range condition
For example if today is Feb 20, 2017 and user is querying for last 7 days (excluding today):
Adding metrics to dashboard#
To add metrics to a dashboard, simply go to Dashboard and click on "Add Widget" > Metrics

then choose the settings:

and see how it looks like in a dashboard:
