# Split Series by Array Values (instead of whole Array)

**URL:** <https://discuss.elastic.co/t/split-series-by-array-values-instead-of-whole-array/200221>\
**Category:** Kibana\
**Created:** [September 19, 2019, 2:11pm UTC](https://discuss.elastic.co/t/split-series-by-array-values-instead-of-whole-array/200221 "2019-09-19T14:11:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaihil](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kaihil](https://discuss.elastic.co/u/kaihil)\
**Post date:** [September 19, 2019, 2:11pm UTC](https://discuss.elastic.co/t/split-series-by-array-values-instead-of-whole-array/200221/1 "2019-09-19T14:11:18Z")

</div>

Guess I have timeseries data roughly like this (four examples):

timestamp: 1  
systems: [A, C]  
value: 10

timestamp: 1  
systems: [A, B]  
value: 9

timestamp: 2  
systems: [A]  
value: 12

timestamp: 2  
systems: [B, C]  
value: 15

Now I want to use Kibana to plot a graph, which shows the average by bucket and is splitted by each single value of `systems`. But when I try to split a series by "Terms" on the field "systems", it will plot four series. One for each array:

- [A,C]
- [A,B]
- [A]
- [B,C]

But I want just three series, one for each "system":

- A
- B
- C

Is that possible with Kibana?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [September 19, 2019, 7:09pm UTC](https://discuss.elastic.co/t/split-series-by-array-values-instead-of-whole-array/200221/2 "2019-09-19T19:09:13Z")

</div>

The desired behavior you describe should be how Kibana works by default. It sounds to me like the `systems` field may not contain actual arrays, but instead literal strings like `"[A, 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:** [October 17, 2019, 7:09pm UTC](https://discuss.elastic.co/t/split-series-by-array-values-instead-of-whole-array/200221/3 "2019-10-17T19:09:16Z")

</div>

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