# Math in Timelion

**URL:** <https://discuss.elastic.co/t/math-in-timelion/162708>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [January 2, 2019, 7:51pm UTC](https://discuss.elastic.co/t/math-in-timelion/162708 "2019-01-02T19:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [January 2, 2019, 7:51pm UTC](https://discuss.elastic.co/t/math-in-timelion/162708/1 "2019-01-02T19:51:48Z")

</div>

I have an Excel spreadsheet that I am doing some math on a field that I was hoping to move over to Kibana using TimeLion. Below is a screenshot of what I am doing. In Kibana, I have a metric visualization that sums a field `email.count`and with a filter `policy.domain:"example.com" AND email.source_ip:"192.168.1.1"`. I select the desired timeframe, get the number and enter it into the appropriate column in Excel.

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

I do this twice for each timeframe with slightly modified filters for the `Legit` and `Threat` columns. Then, in the `Threat %` column, I divide the value in the `Threat` column with the value in the `Total` column, which gives me the percentage.

Is there a way to achieve the same graph/table in Kibana?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 7, 2019, 2:45pm UTC](https://discuss.elastic.co/t/math-in-timelion/162708/2 "2019-01-07T14:45:38Z")

</div>

Hello,

Visual Builder is basically Timelion with support for aggregation builders. That will be useful to solve your problem.  
[https://www.elastic.co/guide/en/kibana/current/time-series-visual-builder.html](https://www.elastic.co/guide/en/kibana/current/time-series-visual-builder.html)

---

<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 4, 2019, 2:48pm UTC](https://discuss.elastic.co/t/math-in-timelion/162708/3 "2019-02-04T14:48:32Z")

</div>

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