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] Allow client-side bucket filtering of numbers by selecting the visible number range #86190

Closed
wylieconlon opened this issue Dec 16, 2020 · 8 comments
Labels
enhancement New value added to drive a business result Feature:ES|QL ES|QL related features in Kibana Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@wylieconlon
Copy link
Contributor

Context

The bucket selector aggregation is one of the most-upvoted Kibana feature requests, but the Elasticsearch feature is too complex to add to Lens because it uses Painless scripting. I am proposing that we simplify by limiting it to numbers only. The main use cases can be solved with a simple number range input, like "number is greater than 0" or "number is less than 100". This filtering needs to be done client side because it has to run after all calculations.

Examples

Proposed functionality

Each numeric dimension will offer an advanced setting from the flyout editor to "select number range". This setting will be exposed as two number inputs representing the lower and upper bounds of the numbers. Only number that are inside the number range will be shown. So if the user selects that the lower bound is 1, and the upper bound is infinity, it will show positive numbers only.

Screen Shot 2020-12-16 at 4 00 11 PM

@wylieconlon wylieconlon added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Dec 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@ghudgins
Copy link

@flash1293
Copy link
Contributor

@shahzad31 I'm hoping this feature can fix the legend problem with filtered metrics in a general way without introduce some magic or a special flag right now.

@SaraAlshamsi
Copy link

+1

3 similar comments
@redcinelli
Copy link

+1

@gueri-fr
Copy link

gueri-fr commented Nov 3, 2022

+1

@smnschneider
Copy link
Contributor

+1

@stratoula stratoula added the impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. label May 26, 2023
@dej611 dej611 added the Feature:ES|QL ES|QL related features in Kibana label Jul 24, 2024
@dej611
Copy link
Contributor

dej611 commented Jul 24, 2024

This is already possible with ES|QL with the where command.

@dej611 dej611 closed this as completed Jul 24, 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:ES|QL ES|QL related features in Kibana Feature:Lens impact:medium Addressing this issue will have a medium 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

10 participants