-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Display last n values #151453
Comments
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
@maximekuntz the top values depend on the ranking you are selecting. Check the elasticsearch documentation here https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-order In your example you are ranking them alphabetically (ordering by the term value). If you order them by the metric then it will return the top n terms ordered by this metric. If you change this to ascending it will sort the terms by the lowest first and return the top n. Ordering is not guaranteed to return correct results as you see in the documentation. You can improve by enabling the accuracy setting. But maybe I don't understand your request correctly. What do you mean with the last n values? |
@stratoula You are right, I did not detail the exact point. Let consider the following example: we have terms, A, B, C, D, E, F, G, H, I, J. And if I sort in descending order and take the top 6 value, it returns (in this order): J, I, H, G, F, E. I would like to have E, F, G, H, I, J i.e. displayed in ascending (alphabetical) order. I hope it is clearer. |
I think this is a duplicate of #86184 then. |
Got it! This is not possible atm but we have an issue open for that #86184 (allow client side sorting per dimensions). I think this is going to solve this case. I wil close this issue in favor of the one I posted. Thanx for explaining! |
We can currently display on a lens the$n$ first values of a field (in a breakdown) e.g. the 6 top values on the following image.
Could we have the same to display the last$n$ values ?
The text was updated successfully, but these errors were encountered: