# Is it possible to do operations on 2 sums?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-do-operations-on-2-sums/93548
**Category:** Kibana
**Created:** [July 18, 2017, 10:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-do-operations-on-2-sums/93548 "2017-07-18T10:09:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)
#### Post date: [July 18, 2017, 10:09am UTC](https://discuss.elastic.co/t/is-it-possible-to-do-operations-on-2-sums/93548/1 "2017-07-18T10:09:23Z")

</div>

Let's say I have time\_1 and time\_2 fields in my documents. I want to take the sum of all time\_1 and divide it with the sum of all time\_2 in my index.

On another visualization, I want to display this in Kibana via a Pie chart that divides the chart by the sum of time\_1 and time\_2.

Is there a way to do these? Thank you.

---

<div class="post-metadata">

### Author: ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)
#### Post date: [July 19, 2017, 8:44pm UTC](https://discuss.elastic.co/t/is-it-possible-to-do-operations-on-2-sums/93548/2 "2017-07-19T20:44:55Z")

</div>

> [@patrickian](#):
>
> Let's say I have time\_1 and time\_2 fields in my documents. I want to take the sum of all time\_1 and divide it with the sum of all time\_2 in my index.

If this is time series data, you could try the Time Series Visual builder, which has a feature to represent the metrics via a calculation. Other than that, I don't think Kibana has what you are looking for

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 16, 2017, 8:45pm UTC](https://discuss.elastic.co/t/is-it-possible-to-do-operations-on-2-sums/93548/3 "2017-08-16T20:45:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
