# Add math to metrics in kibana

**URL:** https://discuss.elastic.co/t/add-math-to-metrics-in-kibana/132412
**Category:** Kibana
**Created:** [May 18, 2018, 4:17am UTC](https://discuss.elastic.co/t/add-math-to-metrics-in-kibana/132412 "2018-05-18T04:17:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tfe2012](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tfe2012](https://discuss.elastic.co/u/tfe2012)
#### Post date: [May 18, 2018, 4:17am UTC](https://discuss.elastic.co/t/add-math-to-metrics-in-kibana/132412/1 "2018-05-18T04:17:38Z")

</div>

I have this count metric:

 ![42](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4a16cc91f28c5f3d37c750e3a99db8f5222cd70.png)

Is it possible this number (457) multiply on some coefficient ?

For example 457 \* (10 / 29) to get: 157,58

---

<div class="post-metadata">

### Author: ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)
#### Post date: [May 18, 2018, 1:19pm UTC](https://discuss.elastic.co/t/add-math-to-metrics-in-kibana/132412/2 "2018-05-18T13:19:12Z")

</div>

You could use scripted fields to accomplish this: [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

---

<div class="post-metadata">

### Author: ![tfe2012](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tfe2012](https://discuss.elastic.co/u/tfe2012)
#### Post date: [May 19, 2018, 1:34am UTC](https://discuss.elastic.co/t/add-math-to-metrics-in-kibana/132412/3 "2018-05-19T01:34:02Z")

</div>

I found solution:

> <https://stackoverflow.com/questions/50403676/add-math-to-metrics-in-kibana>

---

<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 16, 2018, 1:34am UTC](https://discuss.elastic.co/t/add-math-to-metrics-in-kibana/132412/4 "2018-06-16T01:34:08Z")

</div>

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