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

Ability to 'Round' an aggregation #61181

Closed
kayaktri opened this issue Mar 24, 2020 · 4 comments
Closed

Ability to 'Round' an aggregation #61181

kayaktri opened this issue Mar 24, 2020 · 4 comments
Labels
Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@kayaktri
Copy link

Kibana can round numbers if it is a field, but it cannot round an aggregation like the following:
image

This would be useful to round to the nearest integer, to calculate avg per any time period, rather than getting 3 or 4 decimal places. Whole numbers would be much more practical in this case.

Thank you for your concern...

@mshustov mshustov added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Mar 25, 2020
@elasticmachine
Copy link
Contributor

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

@flash1293
Copy link
Contributor

@kayaktri You can get close by setting format:number:defaultPattern in the advanced settings. This is a base setting that gets applied if there is no other more specific setting (like the formatter of a field in a specific index pattern).

@kayaktri
Copy link
Author

kayaktri commented Mar 25, 2020

Thank you flash1293. That will work in the meant time, until if/when elastic adds this feature to allow this type of functionality in the aggregation.

@timroes
Copy link
Contributor

timroes commented Mar 27, 2020

Closing this in reference to having field formatters on a visualization level tracked in #16821

@timroes timroes closed this as completed Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants