Skip to content
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] sort by a formula column without expanding the entire range #114951

Closed
Tracked by #184648
Leaf-Lin opened this issue Oct 14, 2021 · 6 comments
Closed
Tracked by #184648

[Lens] sort by a formula column without expanding the entire range #114951

Leaf-Lin opened this issue Oct 14, 2021 · 6 comments
Labels
enhancement New value added to drive a business result Feature:Lens 🧊 iceboxed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@Leaf-Lin
Copy link
Contributor

Describe the feature:

I need to sort by a formula column without expanding the entire range of top hits.
Today (running 7.15), I'm able to create a Lens Table where the formula allows me to define a column of interest. But the choice of sorting on top hits are either alphabetically or the count of some fields which does not represent the column of interest.

For small data size, I'm able to expand the entire top hits range and then sort by the column using the browser sort. But when my data size grows bigger, this is not possible and the sorting becomes meaningless as it only takes the first x top hits.

I'm not 100% sure if this is related to #102956 or #94788, so I've posted in a new issue. Please feel free to close this if this is a duplicate of another issue.

Describe a specific use case for the feature:
I've provided a csv example -- status_code_sorting.csv of 100 clusters and status code received in proxy log. The use case is to create a table sorting by the rejection ratio which can be calculated as count(kql='status_code:429')/count() for each unique cluster.

Using the following Lens configuration, I can create a table giving me the correct sorting when expanding Number of values to 100 in the Top values of name.
Screen Shot 2021-10-14 at 4 36 07 pm
But if my data size is much larger, I do not wish to expand the Top value of name to the entire range of data. In the example here, if I restrict my Top value of name to only 10 records, I no longer see my top highest "rejection rate" cluster_3 on the list.
Screen Shot 2021-10-14 at 4 23 26 pm

@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 14, 2021
@ghudgins ghudgins added enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Oct 14, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors (Team:VisEditors)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 14, 2021
@ghudgins
Copy link
Contributor

ghudgins commented Dec 1, 2021

we hope to fix this in this issue - #86184

@flash1293
Copy link
Contributor

This issue is specifically about sorting by formula without fetching all rows first. I’m not sure how we can achieve this - for some use cases it’s just not feasible to stream data to Kibana before doing the sorting (e.g. if there are hundreds of thousands of terms)

@squadwuschel
Copy link

If you can't sort for the value you have created in the formula, then it's a useless feature to create custom formulars in large datasets where you want to sort for best or worst values after calculating them.

@ghudgins
Copy link
Contributor

we are working on a more comprehensive solution to this across the product. issues will be created at some point soon to encompass this work and then we will close / link

@stratoula stratoula added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Jan 26, 2023
@timductive timductive added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Aug 8, 2023
@markov00
Copy link
Member

markov00 commented Jun 3, 2024

In order to provide better transparency of priorities, issues that will not be prioritized within the next 24 months are being closed.

Tracking request in Lens general improvements ice box, solvable possibly with ESQL #184648

@markov00 markov00 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens 🧊 iceboxed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

8 participants