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

[TSVB] Access to the other buckets in Math aggregation #22866

Closed
marius-dr opened this issue Sep 10, 2018 · 3 comments
Closed

[TSVB] Access to the other buckets in Math aggregation #22866

marius-dr opened this issue Sep 10, 2018 · 3 comments
Labels
enhancement New value added to drive a business result Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@marius-dr
Copy link
Member

Right now params._all.<name>.values seems to only access each split's previous values in the buckets. In order to create a percentage column in the Data Table using the Math aggregation you should be able to access the values of all buckets in order to do something like this:
divide(params._all.count.values,sum(params._all.count.values))

This would solve some open issues: #19489 and it's a feature requested for a log time that was available in the old Math library.

@marius-dr marius-dr added Feature:TSVB TSVB (Time Series Visual Builder) enhancement New value added to drive a business result labels Sep 10, 2018
@bhavyarm bhavyarm added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) triage_needed labels Sep 11, 2018
@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Sep 13, 2018
@harsh1802
Copy link

Hi,
I am waiting for this feature for a long time. any update on this? In which release this feature will be available?
Regards,
Harsh

@rjso
Copy link

rjso commented Jun 12, 2020

Hi all,

I would like to understand if this is now a possibility or not as I can see there was interest in this.

Also @marius-dr would be nice to know if you found a workaround for this. I understand new functionalities were created for the DataTables component but not necessarily for the TSVB one.

What we are trying to achieve seems to be a very plausible scenario. Which is in a table inside a TSVB component, show the percentage of the total (and not of the specific group) and for that we would have to have access to the total across buckets

@ghudgins
Copy link

Closing this issue because this is supported in Lens visualizations. If you are trying to access the "other" bucket totals you can use the overall_sum function in lens formula which includes the terms split + the other bucket. This has also been added to data table visualization as well. Let us know if this doesn't solve this case!

Since this would require a large development effort to implement in TSVB and our efforts are focused on extending the functionality of Lens in easy-to-use and consistent way. We aim to provide the best possible visualization editing experience in Lens and are working to improve that tool and help users migrate.

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:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants