# Sum of Several "Top Hit" Values in Table or as a Metric

**URL:** https://discuss.elastic.co/t/sum-of-several-top-hit-values-in-table-or-as-a-metric/173526
**Category:** Kibana
**Created:** [March 22, 2019, 4:29pm UTC](https://discuss.elastic.co/t/sum-of-several-top-hit-values-in-table-or-as-a-metric/173526 "2019-03-22T16:29:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)
#### Post date: [March 26, 2019, 7:03pm UTC](https://discuss.elastic.co/t/sum-of-several-top-hit-values-in-table-or-as-a-metric/173526/3 "2019-03-26T19:03:56Z")

</div>

@gehogan3 check out this other thread where I've answered a similar question, I think it should apply to your problem as well.

> [@Sum of field of latest unique values](https://discuss.elastic.co/t/sum-of-field-of-latest-unique-values/162322):
>
> I have an X number of records like: { server: 1, size: 813, @timestamp: "2018-12-28 09:00"} { server: 2, size: 654, @timestamp: "2018-12-28 09:00"} { server: 3, size: 752, @timestamp: "2018-12-28 09:00"} { server: 1, size: 915, @timestamp: "2018-12-28 10:00"} { server: 2, size: 823, @timestamp: "2018-12-28 10:00"} { server: 3, size: 783, @timestamp: "2018-12-28 10:00"} What I would like is to show the latest total size (2521) of all the unique servers, preferably displayed with the "metric" vi…

---

_[View the full topic](https://discuss.elastic.co/t/sum-of-several-top-hit-values-in-table-or-as-a-metric/173526)._
