# Kibana TSVB aggregation group by Terms not working correctly?

**URL:** <https://discuss.elastic.co/t/kibana-tsvb-aggregation-group-by-terms-not-working-correctly/340961>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [August 17, 2023, 4:12am UTC](https://discuss.elastic.co/t/kibana-tsvb-aggregation-group-by-terms-not-working-correctly/340961 "2023-08-17T04:12:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hannah\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hannah_zhang/32/124605_2.png) [@Hannah\_Zhang](https://discuss.elastic.co/u/Hannah_Zhang)\
**Post date:** [August 17, 2023, 4:12am UTC](https://discuss.elastic.co/t/kibana-tsvb-aggregation-group-by-terms-not-working-correctly/340961/1 "2023-08-17T04:12:29Z")

</div>

It seems when I use TSVB with Aggregation "Average" of Field "cm\_status.upstream\_power", with Group By "Terms" of Field "cm\_status.mac-address.keyword", all mac-addresses show the same value so the multiple lines show identical curves. See the attached lines which are stacked.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c64a4fb00207856f91319f786a451c523fc06bca.png)  
You can see each mac address has exactly the same value at each point, but the actual data is very different.  
The mappings of the index is as follows, and I'm using version 7.14:

```auto
{
  "cm_status_index2" : {
    "mappings" : {
      "properties" : {
        "cm_status" : {
          "properties" : {
            "mac-adress" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "number-of-cpe" : {
              "type" : "long"
            },
            "upstream-power" : {
              "type" : "long"
            }
          }
        },
        "timestamp" : {
          "type" : "date"
        }
      }
    }
  }
}

```

---

<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 14, 2023, 4:12am UTC](https://discuss.elastic.co/t/kibana-tsvb-aggregation-group-by-terms-not-working-correctly/340961/2 "2023-09-14T04:12:32Z")

</div>

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