# Kibana latest value aggregation pie chart

**URL:** <https://discuss.elastic.co/t/kibana-latest-value-aggregation-pie-chart/169312>\
**Category:** Kibana\
**Created:** [February 21, 2019, 12:23am UTC](https://discuss.elastic.co/t/kibana-latest-value-aggregation-pie-chart/169312 "2019-02-21T00:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 21, 2019, 10:19pm UTC](https://discuss.elastic.co/t/kibana-latest-value-aggregation-pie-chart/169312/2 "2019-02-21T22:19:25Z")

</div>

Hi,

To get that kind of aggregation in Kibana, you'll want a user-centric index that keeps the last-known country for each user updated as new events are generated. Take a look at a similar question I helped with: [Count Of Metric after Doing Top Hits](https://discuss.elastic.co/t/count-of-metric-after-doing-top-hits/169292/2)

---

_[View the full topic](https://discuss.elastic.co/t/kibana-latest-value-aggregation-pie-chart/169312)._
