Create a custom metric
Custom metrics let you create a KPI calculated from metrics that already exist in Eulerian.
You can use them in the Report Center just like standard metrics.
How it works
A custom metric has two parts:
| Part | Description |
|---|---|
| Name | Technical name of the custom metric. It must not contain spaces or special characters. |
| Value | Calculation formula based on existing metrics or on other custom metrics. |
Create a custom metric
To create a custom metric:
- Find the technical names of the metrics you want to use.
- Create a new custom metric.
- Enter a name with no spaces or special characters.
- Enter the formula in the Value field.
- Save the metric.
Example · Revenue per new customer
Example taken from the original documentation.
Goal: create a Revenue / new customer KPI.
Metrics used:
| KPI | Technical name |
|---|---|
| Revenue | order_amount |
| New customers | new_customer |
Name of the custom metric:
ca_par_nv_client
Value:
order_amount / new_customer
Use a custom metric in another metric
A custom metric can be reused in the formula of another custom metric.
In that case, put its technical name in the Value field, as you would for a standard metric.
Use a custom metric in a query
Once created, the custom metric can be used in Report Center queries like any standard metric.
Points to watch
- The custom metric’s name must not contain spaces or special characters.
- The formula must use the metrics’ technical names.
- A custom metric can combine standard metrics and other custom metrics.
- Check that the metrics used in the formula are available and consistent with the report’s scope.