# Show calculations in Metric visualization

**URL:** <https://discuss.elastic.co/t/show-calculations-in-metric-visualization/99380>\
**Category:** Kibana\
**Created:** [September 5, 2017, 7:09am UTC](https://discuss.elastic.co/t/show-calculations-in-metric-visualization/99380 "2017-09-05T07:09:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [September 5, 2017, 7:09am UTC](https://discuss.elastic.co/t/show-calculations-in-metric-visualization/99380/1 "2017-09-05T07:09:50Z")

</div>

Hi

I have an equation that I have to show that is something as the following:

X= (amount of log that fits certain criteria) | the criteria is that the difference of, two timestamps in the logs are smaller than 3 seconds  
Y = amount of logs that have some flag

Z = (100-X)/(Y\*100)

I need to show Z the problem is that I don't know how to make any complicated search of finding any A and then dividing it by B. I only know how to find A or B.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 5, 2017, 4:36pm UTC](https://discuss.elastic.co/t/show-calculations-in-metric-visualization/99380/2 "2017-09-05T16:36:33Z")

</div>

I don't think you can do this with the Metric visualization. You could do this with the timelion visualization, [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:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 3, 2017, 4:36pm UTC](https://discuss.elastic.co/t/show-calculations-in-metric-visualization/99380/3 "2017-10-03T16:36:34Z")

</div>

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