# Delta of same field at different times

**URL:** <https://discuss.elastic.co/t/delta-of-same-field-at-different-times/231757>\
**Category:** Kibana\
**Created:** [May 8, 2020, 3:16pm UTC](https://discuss.elastic.co/t/delta-of-same-field-at-different-times/231757 "2020-05-08T15:16:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![griffer98](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@griffer98](https://discuss.elastic.co/u/griffer98)\
**Post date:** [May 8, 2020, 3:16pm UTC](https://discuss.elastic.co/t/delta-of-same-field-at-different-times/231757/1 "2020-05-08T15:16:36Z")

</div>

I have a field the is a time field. I want to show on a graph the difference between the value of the field at say the beginning of each hour and the end of the hour. Is this possible?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [May 8, 2020, 3:40pm UTC](https://discuss.elastic.co/t/delta-of-same-field-at-different-times/231757/2 "2020-05-08T15:40:42Z")

</div>

I'm not sure to understand your data model. With Time Series Visual Builder (TSVB) you can produce a chart where you set a interval, take the count of documents for each bucket and then render the difference with the previous bucket.

This example is using the KIbana Flights sample data and rendering both the regular count and the derivative:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27e2ac2264fdb199f67da075a68903aa6f2bcd9a.png)

Does this help?

---

<div class="post-metadata">

**Author:** ![griffer98](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@griffer98](https://discuss.elastic.co/u/griffer98)\
**Post date:** [May 21, 2020, 5:30pm UTC](https://discuss.elastic.co/t/delta-of-same-field-at-different-times/231757/3 "2020-05-21T17:30:17Z")

</div>

No this will not work. What I am trying to calculate is not consistent. Say I have something I can group by and in each of these groups, I there are multiple package delivery times. These do not have a rate of change or anything like that. I just need to be able to find the difference between the first and last of these delivery times for each group and plot that .

---

<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 18, 2020, 5:30pm UTC](https://discuss.elastic.co/t/delta-of-same-field-at-different-times/231757/4 "2020-06-18T17:30:43Z")

</div>

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