# Mathematical Operations

**URL:** <https://discuss.elastic.co/t/mathematical-operations/86116>\
**Category:** Kibana\
**Created:** [May 17, 2017, 1:56pm UTC](https://discuss.elastic.co/t/mathematical-operations/86116 "2017-05-17T13:56:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BERUSO](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@BERUSO](https://discuss.elastic.co/u/BERUSO)\
**Post date:** [May 17, 2017, 1:56pm UTC](https://discuss.elastic.co/t/mathematical-operations/86116/1 "2017-05-17T13:56:38Z")

</div>

Hi everybody. I´ve been working on Kibana for 5 months and it's a great tool for designing dashboard. Now, I don't if it's possible, but I want to work with diferent variables in mathematical operations, I've read that this isn't implemented on Kibana, yet, and others says that there is a workaround, so I'm not sure and I would like to know if any of you have tried this. Hope you can clear my doubts and help me.

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 17, 2017, 3:53pm UTC](https://discuss.elastic.co/t/mathematical-operations/86116/2 "2017-05-17T15:53:11Z")

</div>

@BERUSO have you tried using the Scripted Fields in Kibana? You can use these to do some calculations on the fly: [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

If you're analyzing time-series data, Timelion also offers some additional mathematical operations: [https://www.elastic.co/guide/en/kibana/current/timelion.html](https://www.elastic.co/guide/en/kibana/current/timelion.html)

---

<div class="post-metadata">

**Author:** ![BERUSO](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@BERUSO](https://discuss.elastic.co/u/BERUSO)\
**Post date:** [May 17, 2017, 4:18pm UTC](https://discuss.elastic.co/t/mathematical-operations/86116/3 "2017-05-17T16:18:37Z")

</div>

I've tried Scripted Fields to calculate one variable, but what about calculating 2 different variables and then use mathematical operation between those ones and show a trend graph of the 3 calculations. Is it possible?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [May 17, 2017, 4:21pm UTC](https://discuss.elastic.co/t/mathematical-operations/86116/4 "2017-05-17T16:21:53Z")

</div>

@BERUSO unfortunately you can't reference Scripted Fields from other Scripted Fields, but you could potentially duplicate the scripted field logic.

---

<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:** [June 14, 2017, 4:22pm UTC](https://discuss.elastic.co/t/mathematical-operations/86116/5 "2017-06-14T16:22:09Z")

</div>

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