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 to access metric for several levels to compute metrics #125377

Closed
vsabelli opened this issue Feb 11, 2022 · 2 comments
Closed

[LENS] Allow to access metric for several levels to compute metrics #125377

vsabelli opened this issue Feb 11, 2022 · 2 comments
Labels
Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed

Comments

@vsabelli
Copy link

Hi all,

while creating a table visualisation with Lens, we often need to split metrics on several levels (e.g. to compute a percentage).

For instance, let's suppose we have such documents on Elasticsearch:
{
"name": "John",
"surname": "Smith"
"customer_id": "123abc"
"message": "hello"
}
and that we want a table with the following data:


surname | unique customer id | name | unique customer id | percentage |

Smith | 8 | John | 5 | 5%
Smith | 8 | Mark | 2 | 2%
Smith | 8 | Lucas | 1 | 1%
Doe | 92 | John | 92 | 92%

Percentage is calculated over unique count by customer_id to estimate the name/surname distribution in our unique customers (we might have many documents with same name, surname, customer_id but different message).

In spite of the huge power of formulas that we can leverage in Lens tables, I am not able to compute such percentage (I cannot reference a previous column, nor a "upper layer" aggregation).

This feature is already present in an external plugin (Enhanced table), but we would like to migrate to a solution built-in to Kibana (and Lens really fits our needs!).

Are we missing any Lens feature that might help us computing the required values?

Thank you for your support!!

@botelastic botelastic bot added the needs-team Issues missing a team label label Feb 11, 2022
@stratoula stratoula added Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed labels Feb 14, 2022
@elasticmachine
Copy link
Contributor

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

@flash1293
Copy link
Contributor

This feature unfortunately doesn't exist yet, it's captured in #94609 Left a +1 there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed
Projects
None yet
Development

No branches or pull requests

4 participants