# Visualize difference between two sums

**URL:** https://discuss.elastic.co/t/visualize-difference-between-two-sums/185270
**Category:** Kibana
**Created:** [June 11, 2019, 7:14pm UTC](https://discuss.elastic.co/t/visualize-difference-between-two-sums/185270 "2019-06-11T19:14:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![luksi1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@luksi1](https://discuss.elastic.co/u/luksi1)
#### Post date: [June 11, 2019, 7:14pm UTC](https://discuss.elastic.co/t/visualize-difference-between-two-sums/185270/1 "2019-06-11T19:14:25Z")

</div>

Is there any way I can create a visualization between two sums. We have an ActiveMQ instance that reports via Metricbeat + Jolokia the EnqueueCount and the DequeueCount. This is a rolling count, so I'm not getting the throughput, simply how many messages have been sent to queues and how many have been pulled from a queue. I would like to visualize the difference between each buckets date. For instance, I could sum the counts from one bucket and simply subtract what I received from a minute ago. We're using Kibana 7.

---

<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: [June 12, 2019, 4:41pm UTC](https://discuss.elastic.co/t/visualize-difference-between-two-sums/185270/2 "2019-06-12T16:41:29Z")

</div>

You can use [timelion](https://www.elastic.co/guide/en/kibana/current/timelion.html) and [Time series visual builder](https://www.elastic.co/guide/en/kibana/current/time-series-visual-builder.html) to visualize two sums

---

<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: [July 10, 2019, 4:41pm UTC](https://discuss.elastic.co/t/visualize-difference-between-two-sums/185270/3 "2019-07-10T16:41:33Z")

</div>

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