# Table

**URL:** https://discuss.elastic.co/t/table/280299
**Category:** Kibana
**Created:** [August 3, 2021, 10:18am UTC](https://discuss.elastic.co/t/table/280299 "2021-08-03T10:18:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)
#### Post date: [August 3, 2021, 10:18am UTC](https://discuss.elastic.co/t/table/280299/1 "2021-08-03T10:18:27Z")

</div>

I would like to remove the value "0" or null from the table. In the table, I have implemented serial difference aggregation but it shows all the value which includes 0 and null. I would like to exclude this.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d34094270a273085e78e88c4f09333f240d10fb2.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/3/9341612a7f28685510219ea826e63555fb957944.png)

Thank you in advance.

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [August 3, 2021, 11:25am UTC](https://discuss.elastic.co/t/table/280299/2 "2021-08-03T11:25:30Z")

</div>

Hi, unfortunately, it's not possible at the moment in Kibana (except for Vega, but it's not trivial). There's a popular feature request you can upvote about this issue: [Add bucket\_selector aggregation to visualizations · Issue #17544 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/17544)

Until it becomes available, you could to use raw query DSL - example below:

```auto
POST sample_data_ecommerce/_search
{
  "size": 0,
  "aggs": {
    "by_country": {
      "terms": {
        "field": "category.keyword",
        "size": 10,
        "order": {
          "sum_agg": "desc"
        }
      },
      "aggs": {
        "sum_agg": {
          "sum": {
            "field": "price.keyword"
          }
        },
        "bucket_selector_agg": {
          "bucket_selector": {
            "buckets_path": {
              "sum_agg": "sum_agg"
            },
            "script": "params.sum_agg > 0" <---
          }
        }
      }
    }
  }
}

```

then you could visualize it in Vega, but it's not trivial.

---

<div class="post-metadata">

### Author: ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)
#### Post date: [August 4, 2021, 8:17am UTC](https://discuss.elastic.co/t/table/280299/3 "2021-08-04T08:17:04Z")

</div>

@Marta_Bondyra Thank you...  
I would like to suggest the developer to check that why we can't able to sort the data by metrics of serial difference. its strange?  
Again thanks for your solution....

---

<div class="post-metadata">

### Author: ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)
#### Post date: [August 4, 2021, 8:34am UTC](https://discuss.elastic.co/t/table/280299/4 "2021-08-04T08:34:38Z")

</div>

@Marta_Bondyra

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/2/1275d0a36afac667b4ee43cdc831edb7e687f506.png)  
When i implement the json query, it shows an error..

---

<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: [September 1, 2021, 8:35am UTC](https://discuss.elastic.co/t/table/280299/5 "2021-09-01T08:35:16Z")

</div>

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