# Kibana limit results in saved search and data table

**URL:** <https://discuss.elastic.co/t/kibana-limit-results-in-saved-search-and-data-table/177081>\
**Category:** Kibana\
**Created:** [April 16, 2019, 12:07pm UTC](https://discuss.elastic.co/t/kibana-limit-results-in-saved-search-and-data-table/177081 "2019-04-16T12:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekkarne](https://avatars.discourse-cdn.com/v4/letter/v/f08c70/32.png) [@vivekkarne](https://discuss.elastic.co/u/vivekkarne)\
**Post date:** [April 16, 2019, 12:07pm UTC](https://discuss.elastic.co/t/kibana-limit-results-in-saved-search-and-data-table/177081/1 "2019-04-16T12:07:04Z")

</div>

Hi All,

I am performing aggregations on data and then saving that search, i want to display only the top x records of the search result. Here is an attached screenshot:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf84fa86b3d0f0464ef1cf3a60317842a4ed32e5.png)

and also limit the total number of rows in a data table to be displayed to top x:

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d16065a19687b0443e918102211cd24ee219649.png)

I found that "discover:sampleSize" does this but since it is applied globally it is not much of use, i would like specific counts for specific queries which is not possible using "discover:sampleSize".

Thanks,  
Vivek

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [April 16, 2019, 1:46pm UTC](https://discuss.elastic.co/t/kibana-limit-results-in-saved-search-and-data-table/177081/2 "2019-04-16T13:46:40Z")

</div>

Hi @vivekkarne,

Unfortunately it's not possible currently. You can track progress and vote for this feature [here](https://github.com/elastic/kibana/issues/4060).

Best,  
Oleg

---

<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:** [May 14, 2019, 1:46pm UTC](https://discuss.elastic.co/t/kibana-limit-results-in-saved-search-and-data-table/177081/3 "2019-05-14T13:46:43Z")

</div>

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