Filter series in a Time series graph

Is there an option to filter series in a Time series graph by:

  1. selecting only a number of series with greatest average values and discarding others
  2. discarding series whose average values have not reached a certain threshold

For example here only purple, green and yellow should be shown while others removed both from the graph and legend.

@koshmariel you can try the filter by value transform could work for this use case.

There might be other options depending on your datasource the filter could be incorporated into your query.