[Lens] Allow use of top metric for last value #102956
Labels
enhancement
New value added to drive a business result
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Right now Lens is using top hits to power the last value function. However, this has a major downside - it's not possible to sort a terms agg by a top hits agg (it's also less efficient).
By using top metrics instead of top hits, we could use sorting and also provide better performance, but it has a downside as well - array values are not supported, something we offer in the current version of last value.
Previous discussion: #98733
Absent a better solution, to offer the best possible feature, we should offer a choice in the UI:
The text was updated successfully, but these errors were encountered: