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] Implement a last value - first value shortcut function #101500

Closed
Tracked by #184648
wylieconlon opened this issue Jun 7, 2021 · 5 comments
Closed
Tracked by #184648

[Lens] Implement a last value - first value shortcut function #101500

wylieconlon opened this issue Jun 7, 2021 · 5 comments
Labels
enhancement New value added to drive a business result Feature:ES|QL ES|QL related features in Kibana 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

@wylieconlon
Copy link
Contributor

wylieconlon commented Jun 7, 2021

We decided not to implement a first_value function in Lens because we could only identify one use case, which is last value - first value. We don't have a good name for this type of function, but it's used primarily when looking timestamped summaries of data. For example in https://discuss.elastic.co/t/display-aggregated-counter-value-per-interval/272333/7 the user is looking at a counter-type number (issues) where it's important to ignore duplicates. Using last/first value guarantees that issues are counted once.

The implementation of this shortcut function requires us to implement a "first value" concept, but this should not be exposed in the quick functions- it only makes sense within the context of this shortcut function or as a formula.

Use Cases

  • Formula: Time between calculations
  • Only counting something once
@wylieconlon wylieconlon added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Jun 7, 2021
@elasticmachine
Copy link
Contributor

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

@stratoula stratoula added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Feb 15, 2023
@timductive timductive added the Feature:ES|QL ES|QL related features in Kibana label Sep 20, 2023
@timductive
Copy link
Member

This is useful but the question is should we implement in Lens formula or put on the ESQL roadmap.

@stratoula
Copy link
Contributor

The ES team confirmed that they are going to support last and first value either with an aggregation or an eval function so I am changing the impact to low as with ESQL we will have it out of the box.

@stratoula stratoula 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 Sep 20, 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:ES|QL ES|QL related features in Kibana 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

6 participants