This step allows you to define custom metrics that can be calculated from the dataset. Each metric is defined by a name, an optional description, and a script that calculates the metric. Metrics are defined in JavaScript and should return a number. Inside one metric, you can use another metric through the available object Metric like this: Metric[“licenses_to_renew”].

metrics
array[object]
required

Metrics list.

difference
string

Show difference. Whether to show the difference between the metric of the selection and the metric of the total population.

Values must be one of the following:

  • ABSOLUTE
  • RELATIVE