# How to compare and sum docs with different values

**URL:** <https://discuss.elastic.co/t/how-to-compare-and-sum-docs-with-different-values/246364>\
**Category:** Kibana\
**Created:** [August 25, 2020, 11:18pm UTC](https://discuss.elastic.co/t/how-to-compare-and-sum-docs-with-different-values/246364 "2020-08-25T23:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [August 26, 2020, 4:33am UTC](https://discuss.elastic.co/t/how-to-compare-and-sum-docs-with-different-values/246364/8 "2020-08-26T04:33:01Z")

</div>

@Den1

You either need to change how you ingest the data or post process the documents.

Here's a discussion around a similar need - [Calculation time difference between two document](https://discuss.elastic.co/t/calculation-time-difference-between-two-document/174876)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-compare-and-sum-docs-with-different-values/246364)._
