# Filter results in a visualization using JSON (filter for a "greater than" result)

**URL:** <https://discuss.elastic.co/t/filter-results-in-a-visualization-using-json-filter-for-a-greater-than-result/255269>\
**Category:** Kibana\
**Created:** [November 12, 2020, 11:55pm UTC](https://discuss.elastic.co/t/filter-results-in-a-visualization-using-json-filter-for-a-greater-than-result/255269 "2020-11-12T23:55:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![forestgump](https://avatars.discourse-cdn.com/v4/letter/f/919ad9/32.png) [@forestgump](https://discuss.elastic.co/u/forestgump)\
**Post date:** [November 12, 2020, 11:55pm UTC](https://discuss.elastic.co/t/filter-results-in-a-visualization-using-json-filter-for-a-greater-than-result/255269/1 "2020-11-12T23:55:39Z")

</div>

Hi,  
I have a data table which counts a total of certain parameter in each server. I need to filter and show in this table where the "Total" is more than "10,000". Other servers which has less than 10,000 is not significant to me so that I do not want them in the table.  
What sort of a JSON input I should use to achieve this?

[Untitled|690x104](https://discuss.elastic.co/uploads/short-url/dxGmMCDyDKiCltjepYjq46ostKt.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [November 15, 2020, 6:01am UTC](https://discuss.elastic.co/t/filter-results-in-a-visualization-using-json-filter-for-a-greater-than-result/255269/2 "2020-11-15T06:01:14Z")

</div>

Hi  
I understand that you need a [bucket script aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html) to filter results. There is a [TSVB visualization](https://www.elastic.co/guide/en/kibana/7.9/TSVB.html) can help you achieve bucket script aggregation:

---

<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:** [December 13, 2020, 6:01am UTC](https://discuss.elastic.co/t/filter-results-in-a-visualization-using-json-filter-for-a-greater-than-result/255269/3 "2020-12-13T06:01:25Z")

</div>

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