Skip to content

Value calculations

When a visualization receives a numeric field, the data often contains a series of values rather than a single number. Use the Calculation setting to select a reducer function that aggregates the series into one representative value for display.

The value calculation setting is available in the following chart types. These are the only chart types that display a single aggregated value per series.

  • Bar gauge
  • Gauge
  • Metric

A data series may contain NaN or null entries. Calculation methods marked with an asterisk (*) skip these invalid entries and operate only on valid numeric values. Methods without an asterisk use raw positional values regardless of whether they are valid numbers.

The following table lists all available calculation methods.

CalculationDescriptionRequires valid values
FirstThe first value in the field.No
First *The first valid (non-null, non-NaN) value in the field.Yes
LastThe last value in the field.No
Last *The last valid (non-null, non-NaN) value in the field.Yes
MinThe minimum value among all valid values.Yes
MaxThe maximum value among all valid values.Yes
MeanThe arithmetic average of all valid values.Yes
MedianThe middle value when all valid values are sorted.Yes
TotalThe sum of all valid values.Yes
CountThe total number of values in the field (including null/NaN).No
Distinct countThe number of unique values in the field (including null/NaN).No
VarianceThe statistical variance of all valid values.Yes