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] unable to add last value of date/string field #104787

Closed
tsullivan opened this issue Jul 8, 2021 · 3 comments · Fixed by #125389
Closed

[Lens] unable to add last value of date/string field #104787

tsullivan opened this issue Jul 8, 2021 · 3 comments · Fixed by #125389
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@tsullivan
Copy link
Member

Kibana version: 7.14.0-bc1
Original install method (e.g. download page, yum, from source, etc.): docker
Describe the bug:
Input validation prevents the user from configuring a table in Lens from showing the last value of a date field.

Steps to reproduce:

  1. Install the ecommerce sample dataset
  2. Go to Visualize Library > Create and choose Lens
  3. Change the chart type to table
  4. Drag the email field in the table. Lens creates a "Top values of email" table:
    image
  5. Click the "Count of records" metric
  6. Choose the "last value" function and look for date fields.
    image

The date fields are in light gray text. When you click on one of them, the function automatically changes to "Unique count".

The same limitation happens with Maximum and Minimum. Looks like that is already filed as an issue: #95489

Expected behavior:
"Last value of date" should be supported.

@tsullivan tsullivan added the bug Fixes for quality problems that affect the customer experience label Jul 8, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Jul 8, 2021
@tsullivan tsullivan added Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jul 8, 2021
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Jul 8, 2021
@flash1293 flash1293 added enhancement New value added to drive a business result and removed bug Fixes for quality problems that affect the customer experience labels Jul 8, 2021
@ghudgins
Copy link

+1

Getting the latest timestamp from the newest event would be nice. Timestamp type metric field. "Latest value" plus timestamp does not work, and there is no date metric field.

@m-adams
Copy link

m-adams commented Nov 16, 2021

+1 for date but also string should be supported for last state type of use cases.

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 Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
5 participants