# Min\_doc\_count for data table filter aggregation

**URL:** <https://discuss.elastic.co/t/min-doc-count-for-data-table-filter-aggregation/252902>\
**Category:** Elasticsearch\
**Created:** [October 21, 2020, 9:37pm UTC](https://discuss.elastic.co/t/min-doc-count-for-data-table-filter-aggregation/252902 "2020-10-21T21:37:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Scaramuzzo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_scaramuzzo/32/75843_2.png) [@Eric\_Scaramuzzo](https://discuss.elastic.co/u/Eric_Scaramuzzo)\
**Post date:** [October 21, 2020, 9:37pm UTC](https://discuss.elastic.co/t/min-doc-count-for-data-table-filter-aggregation/252902/1 "2020-10-21T21:37:51Z")

</div>

Hello! I am creating a data table with a unique count metric and a filter aggregation, and I want to not show rows that have a doc\_count of 0. I tried using min\_doc\_count in the json input, but that just threw an error: `Error in visualisation [esaggs] >` How can I go about doing this? Thanks!

---

<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:** [November 18, 2020, 9:37pm UTC](https://discuss.elastic.co/t/min-doc-count-for-data-table-filter-aggregation/252902/2 "2020-11-18T21:37:53Z")

</div>

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