# By terms grouped data show the same value in time series

**URL:** <https://discuss.elastic.co/t/by-terms-grouped-data-show-the-same-value-in-time-series/275422>\
**Category:** Kibana\
**Created:** [June 9, 2021, 10:47am UTC](https://discuss.elastic.co/t/by-terms-grouped-data-show-the-same-value-in-time-series/275422 "2021-06-09T10:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Kramer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_kramer/32/78061_2.png) [@Michael\_Kramer](https://discuss.elastic.co/u/Michael_Kramer)\
**Post date:** [June 9, 2021, 10:47am UTC](https://discuss.elastic.co/t/by-terms-grouped-data-show-the-same-value-in-time-series/275422/1 "2021-06-09T10:47:16Z")

</div>

So I am trying to show the size of multiple folders over time in a time series diagram.  
The Data is formated like this:  
`"Folder": [{"ID":1, "Path":"/boot", "Size_in_B":139174528 }, {"ID":2, "Path":"/bin", "Size_in_B":7 }]`  
I got the data grouped by their name saved in the Path field, but their size is not shown correctly as every folder is shown having the same size.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50cddf1070969e7e66c4d521f509d009c9d11202.png)  
 ![Capture2](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74fc498a513737f452802db972b2104da2d5c119.png)

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [June 14, 2021, 4:09pm UTC](https://discuss.elastic.co/t/by-terms-grouped-data-show-the-same-value-in-time-series/275422/2 "2021-06-14T16:09:31Z")

</div>

are they stored as an array in the document? In this case it won't work properly in Kibana. You would have to flatten your data, by having 1 document for each id in the array.

---

<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:** [July 12, 2021, 4:10pm UTC](https://discuss.elastic.co/t/by-terms-grouped-data-show-the-same-value-in-time-series/275422/3 "2021-07-12T16:10:02Z")

</div>

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