# Cummulative date sum in Kibana Console

**URL:** https://discuss.elastic.co/t/cummulative-date-sum-in-kibana-console/300315
**Category:** Kibana
**Created:** [March 22, 2022, 10:26am UTC](https://discuss.elastic.co/t/cummulative-date-sum-in-kibana-console/300315 "2022-03-22T10:26:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![The-morpho](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@The-morpho](https://discuss.elastic.co/u/The-morpho)
#### Post date: [March 22, 2022, 10:26am UTC](https://discuss.elastic.co/t/cummulative-date-sum-in-kibana-console/300315/1 "2022-03-22T10:26:28Z")

</div>

I'm working with a log file,I have a field for timestamp ==\> "timestamp":"2021-12-15T16:06:27.269303Z".

I want to perform a cummulative sum on this field in all the document.

I have done this aggregation, but the result is false.  
==\> code  
GET index/\_search  
{  
"aggs":{  
"sum\_time":{  
"sum":{  
"field":"timestamp"  
}

You will find the result of the aggregation in the picture below  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/5/551ab638e67ef3ba23daecf001b8e4004024e1ef.png)

---

<div class="post-metadata">

### Author: ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)
#### Post date: [March 22, 2022, 2:04pm UTC](https://discuss.elastic.co/t/cummulative-date-sum-in-kibana-console/300315/2 "2022-03-22T14:04:49Z")

</div>

> **[Cumulative sum aggregation | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/search-aggregations-pipeline-cumulative-sum-aggregation.html#search-aggregations-pipeline-cumulative-sum-aggregation)**

Generally, Aggregation sum use for numeric value but if y would like calculate time then u should have reference date for calculation.  
Read this topic and I hope that it will be useful for u.

---

<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: [April 19, 2022, 2:05pm UTC](https://discuss.elastic.co/t/cummulative-date-sum-in-kibana-console/300315/3 "2022-04-19T14:05:30Z")

</div>

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