# Discover Top values "Calculated from 5,000 sample records."

**URL:** https://discuss.elastic.co/t/discover-top-values-calculated-from-5-000-sample-records/334061
**Category:** Kibana
**Tags:** discover
**Created:** [May 23, 2023, 1:59am UTC](https://discuss.elastic.co/t/discover-top-values-calculated-from-5-000-sample-records/334061 "2023-05-23T01:59:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 23, 2023, 2:06am UTC](https://discuss.elastic.co/t/discover-top-values-calculated-from-5-000-sample-records/334061/2 "2023-05-23T02:06:54Z")

</div>

Click Visualize, It will take you to Lens  
Then adjust the timepicker to the entire time range if that is meaningful  
Note Aggregations on large data set can have small inaccuracies with respect to aggregations  
Depending on the version in Lens there is an option to select High Accuracy mode.

It would be worth reading [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html)

There is also an excellent discussion here by one of our experts

> [@Elasticsearch aggregation on million or more data](https://discuss.elastic.co/t/elasticsearch-aggregation-on-million-or-more-data/293641):
>
> I have an index which can have millions of documents with time. I need to make several aggregation on those huge amount of documents fields. In these documents, I need to count number of unique value of a field which may grow large with number of documents like more than million. I know "cardinality" aggregation. But this doesn't give right count, this gives approximation. Then I tried to used scripted\_metric. { "aggs": { "distinct\_count": { …

---

_[View the full topic](https://discuss.elastic.co/t/discover-top-values-calculated-from-5-000-sample-records/334061)._
