# Simple multiplication on Count result

**URL:** <https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191>\
**Category:** Kibana\
**Created:** [August 27, 2018, 2:22pm UTC](https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191 "2018-08-27T14:22:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nerin](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Nerin](https://discuss.elastic.co/u/Nerin)\
**Post date:** [August 27, 2018, 2:22pm UTC](https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191/1 "2018-08-27T14:22:54Z")

</div>

Hi All,

I newly joined the ELK world 🙂 , and would love a little help with a simple Arithmetic problem.  
I am using version 6.4.

I would like to multiple the output of a Count metric by 2.

Currently the Aggregation options do not have a 'Math' option that i noticed in some blogs .

What would be the easiest way to do this.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c874476d089ed32ab2f6b468662ed8cee7541511.png)

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 27, 2018, 5:03pm UTC](https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191/2 "2018-08-27T17:03:35Z")

</div>

This isn't possible in the core Kibana visualizations at the moment, but check out the Timelion and Visual Builder visualizations, they both support time series math.

---

<div class="post-metadata">

**Author:** ![Nerin](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Nerin](https://discuss.elastic.co/u/Nerin)\
**Post date:** [August 28, 2018, 9:40am UTC](https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191/3 "2018-08-28T09:40:52Z")

</div>

Dammit ☹  
Thanks man 🙂  
Will give that a try.

---

<div class="post-metadata">

**Author:** ![Nerin](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Nerin](https://discuss.elastic.co/u/Nerin)\
**Post date:** [August 29, 2018, 2:56pm UTC](https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191/4 "2018-08-29T14:56:41Z")

</div>

yay i managed to get my desired calculation with the SUM aggregation of a scripted field (2) and applied a filter to count the occurrences.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/276568c2ef97323584b55590f4543502da14a49b.png)

---

<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:** [September 26, 2018, 2:56pm UTC](https://discuss.elastic.co/t/simple-multiplication-on-count-result/146191/5 "2018-09-26T14:56:53Z")

</div>

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