Skip to content

stat-max

Input Stack:
Output Stack:
TimeSeriesExpr

Filter helper that represents the maximum statistic of the input time series. This is a placeholder that gets automatically replaced with max,:stat when used with :filter. It allows filtering based on the maximum value of each time series without having to duplicate the input expression.

Examples

Filtering series by maximum value range:

BeforeAfter
name,sps,:eq,
(,nf.cluster,),:by
name,sps,:eq,
(,nf.cluster,),:by,
:stat-max,
5e3,:gt,
:stat-max,
20e3,:lt,
:and,
:filter

This filters to show only time series where the maximum value is between 5,000 and 20,000.

  • :stat - Base statistics operation (stat-max represents max,:stat)
  • :filter - Filtering operation that uses stat helpers
  • :stat-min - Filter by minimum values
  • :stat-avg - Filter by average values