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

[Maps] Simple arithmetic for Metrics in Map Visualizations #28265

Closed
anottrott opened this issue Jan 8, 2019 · 6 comments
Closed

[Maps] Simple arithmetic for Metrics in Map Visualizations #28265

anottrott opened this issue Jan 8, 2019 · 6 comments
Assignees
Labels
enhancement New value added to drive a business result Feature:Maps impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@anottrott
Copy link

Perform simple arithmetic on fields within a Metric on a Maps Visualization?

For example, I want to create a region map where the regions are colored by the ratio of two Fields. So I have field_1, field_2 and field_3 and I want to roll up the value

SUM(field_1)/SUM(field_2)
or another example
SUM(field_1) + field_3

In another example, I want to create a region map where the regions are colored by the sum of two fields
SUM(field_1) + field_2

@nreese nreese added [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation enhancement New value added to drive a business result labels Jan 8, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@anottrott
Copy link
Author

An update for anyone interested in this is that this functionality can be achieved using Vega visualizations

@nreese nreese self-assigned this Apr 7, 2020
@thomasneirynck thomasneirynck changed the title Simple arithmetic for Metrics in Map Visualizations [Maps] Simple arithmetic for Metrics in Map Visualizations Jan 19, 2021
@Kayak007
Copy link

Kayak007 commented May 2, 2022

Hi,

Similarly, would be useful to be able to map an equivalent of the TSVB Filter Ratio.

As suggested, we're doing it through Vega visualizations at the moment and it's quite powerful.
But there are some issues like (for example) the following :

Having it natively in Kibana Maps Visualization would be much easier.

Use case is we have logs that flag successes and failures and need to check the Success (or Failure) ratio over time.

Thanks.

@nreese
Copy link
Contributor

nreese commented May 2, 2022

@Kayak007 8.2 release includes the ability to create EMS region maps in lens. This will allow users to use all of lens formula capabilities while creating a region map. Hope this helps your use case.

@jb1b84 jb1b84 added Feature:Maps Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Nov 3, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@jb1b84 jb1b84 removed the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Nov 3, 2022
@nickpeihl nickpeihl added loe:needs-research This issue requires some research before it can be worked on or estimated impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Jan 12, 2023
@ThomThomson
Copy link
Contributor

Closing this because there is a workaround using Lens.

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:Maps impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:needs-research This issue requires some research before it can be worked on or estimated Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants