# How to get deltas between queries

**URL:** <https://discuss.elastic.co/t/how-to-get-deltas-between-queries/146753>\
**Category:** Elasticsearch\
**Created:** [August 30, 2018, 5:18pm UTC](https://discuss.elastic.co/t/how-to-get-deltas-between-queries/146753 "2018-08-30T17:18:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbwest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dbwest/32/32631_2.png) [@dbwest](https://discuss.elastic.co/u/dbwest)\
**Post date:** [August 30, 2018, 5:18pm UTC](https://discuss.elastic.co/t/how-to-get-deltas-between-queries/146753/1 "2018-08-30T17:18:23Z")

</div>

How can I determine the differences between fields in queries in ES?

I saw this other post, but there seemed to be no real answer in the thread.

> [@Getting the delta from count](https://discuss.elastic.co/t/getting-the-delta-from-count/50729):
>
> I'm not sure if this is possible or not, but I would like to get the delta from the number of items each day. Take for example, day1 had 20 entries. day2 had 30 entries. Is method to get the delta in this situation? So instead of plotting 20 and 30, i'd like to plot 10. Thanks.

---

<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:** [September 27, 2018, 5:18pm UTC](https://discuss.elastic.co/t/how-to-get-deltas-between-queries/146753/2 "2018-09-27T17:18:29Z")

</div>

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