# Cumulative subtraction by Kibana

**URL:** <https://discuss.elastic.co/t/cumulative-subtraction-by-kibana/127913>\
**Category:** Kibana\
**Created:** [April 13, 2018, 7:06am UTC](https://discuss.elastic.co/t/cumulative-subtraction-by-kibana/127913 "2018-04-13T07:06:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![data\_scientist](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@data\_scientist](https://discuss.elastic.co/u/data_scientist)\
**Post date:** [April 13, 2018, 7:06am UTC](https://discuss.elastic.co/t/cumulative-subtraction-by-kibana/127913/1 "2018-04-13T07:06:39Z")

</div>

hello, please i want to do cumulative subtraction for points, how can i do it by kibana? is there a plugin or function?

 ![13-4](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c041781ffd6ff05b1a6f4f7b6e326b92fe57f754.png)

Thank YOU

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [April 13, 2018, 3:46pm UTC](https://discuss.elastic.co/t/cumulative-subtraction-by-kibana/127913/2 "2018-04-13T15:46:50Z")

</div>

hi @data_scientist,

what is this cumulative substraction you speak off? I'm not familiar with the concept.

Kibana/Elasticsearch does support serial differencing, which allows you to substract datapoints on fixed intervals. [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-aggregations-pipeline-serialdiff-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-aggregations-pipeline-serialdiff-aggregation.html).

Maybe that's related to what you're looking for

---

<div class="post-metadata">

**Author:** ![data\_scientist](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@data\_scientist](https://discuss.elastic.co/u/data_scientist)\
**Post date:** [April 17, 2018, 1:58pm UTC](https://discuss.elastic.co/t/cumulative-subtraction-by-kibana/127913/3 "2018-04-17T13:58:57Z")

</div>

hi thomasneirynck,  
Thank you , your answer solved my problem .

---

<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:** [May 15, 2018, 1:59pm UTC](https://discuss.elastic.co/t/cumulative-subtraction-by-kibana/127913/4 "2018-05-15T13:59:04Z")

</div>

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