topk-others-sum

Warning

This operation is still incubating and may change.

Input Stack:
k: Int
stat: String
TimeSeriesExpr
Output Stack:
TimeSeriesExpr
 
 

Since: 1.7

Restrict the output for a grouped expression to the k time series with the largest value for the specified summary statistic and computes a sum aggregate for the other time series. Example of usage:

BeforeAfter
name,sps,:eq,
(,nf.cluster,),:by
name,sps,:eq,
(,nf.cluster,),:by,
max,2,:topk-others-sum