# Calculating Sum for a Count aggregation in Kibana?

**URL:** <https://discuss.elastic.co/t/calculating-sum-for-a-count-aggregation-in-kibana/71673>\
**Category:** Kibana\
**Created:** [January 16, 2017, 5:05am UTC](https://discuss.elastic.co/t/calculating-sum-for-a-count-aggregation-in-kibana/71673 "2017-01-16T05:05:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 16, 2017, 5:05am UTC](https://discuss.elastic.co/t/calculating-sum-for-a-count-aggregation-in-kibana/71673/1 "2017-01-16T05:05:12Z")

</div>

I'm having a `Data Table` type of graph, where I'm trying to display the number of `count` metric as per a daily `timestamp`.

Where I'm also having two `filters` in order to sort out the exact `count`.

[This](http://imgur.com/a/7eHLt) is how my table looks like.

What I need to know is, whether it's possible to calculate the `Sum` of both the `counts` per day within the same table?

In order to use the `Sum` aggregation I need a field, where as I want to show the `Sum` of the `counts`. Is it possible do it via a `json input` or a scripted field to calculate the sum of counts being displayed?

Any help could be appreciated.

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [January 17, 2017, 12:19am UTC](https://discuss.elastic.co/t/calculating-sum-for-a-count-aggregation-in-kibana/71673/2 "2017-01-17T00:19:16Z")

</div>

Sorry, but you can't add the sum of two metrics as a column at this time

---

<div class="post-metadata">

**Author:** ![Kulasangar\_Gowrisang](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@Kulasangar\_Gowrisang](https://discuss.elastic.co/u/Kulasangar_Gowrisang)\
**Post date:** [January 17, 2017, 8:30am UTC](https://discuss.elastic.co/t/calculating-sum-for-a-count-aggregation-in-kibana/71673/3 "2017-01-17T08:30:37Z")

</div>

Thank you @spalger 🙂

---

<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:** [February 14, 2017, 8:30am UTC](https://discuss.elastic.co/t/calculating-sum-for-a-count-aggregation-in-kibana/71673/4 "2017-02-14T08:30:39Z")

</div>

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