# Filtering table entries

**URL:** <https://discuss.elastic.co/t/filtering-table-entries/210749>\
**Category:** Kibana\
**Created:** [December 5, 2019, 4:45pm UTC](https://discuss.elastic.co/t/filtering-table-entries/210749 "2019-12-05T16:45:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amirraz26](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@amirraz26](https://discuss.elastic.co/u/amirraz26)\
**Post date:** [December 5, 2019, 4:45pm UTC](https://discuss.elastic.co/t/filtering-table-entries/210749/1 "2019-12-05T16:45:13Z")

</div>

Subject might be a bit confusing so here is an example. Let's say that I have logs that looks like this: { "filed1":"name","count":number}. For a specific time period I have 5 logs with field1 value "A". One of them has count 1 and the others count 0 and 7 logs with field1 value "B", all of them with count 0. I need to create a table that will show the values of field1 that had only count 0 for the specific time period. What I used is a sum aggregation on count and listing the filed1 values in ascending order. The first entry will be "B" with value 0 (7 \* 0) and the second entry will be A with value 1 (4 \* 0 + 1). The solution works, I wonder if there is a way to get a table that lists only the entries with value 0. In this case it will have one entry, "B".

---

<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:** [January 2, 2020, 4:45pm UTC](https://discuss.elastic.co/t/filtering-table-entries/210749/2 "2020-01-02T16:45:24Z")

</div>

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