# Kibana - Splitting series by field names

**URL:** <https://discuss.elastic.co/t/kibana-splitting-series-by-field-names/276984>\
**Category:** Kibana\
**Created:** [June 24, 2021, 9:39pm UTC](https://discuss.elastic.co/t/kibana-splitting-series-by-field-names/276984 "2021-06-24T21:39:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dineshgaglani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshgaglani/32/90802_2.png) [@dineshgaglani](https://discuss.elastic.co/u/dineshgaglani)\
**Post date:** [June 24, 2021, 9:39pm UTC](https://discuss.elastic.co/t/kibana-splitting-series-by-field-names/276984/1 "2021-06-24T21:39:33Z")

</div>

I was hoping to find a way to split a series by field names (and not values of a particular field) in kibana

I have a data set that looks like below:

_{ { date: 24/06/2021, foo: 12, bar: 20}, { date: 24/06/2021, foo: 16, bar: 20}, { date: 25/06/2021, foo: 16, bar: 20}, { date: 25/06/2021, foo: 16, bar: 20} }_

I was hoping to see something like this:

1. Date on the x-axis and
2. the average of 'foo' for that date as one point and average of 'bar' as another point on a timeseries line chart. (essentially having field values of the same document as different series(es))

Is this possible?

Context: I am importing the document from a csv and the field names ('foo' and 'bar') are columns in the csv. I have managed to get what I need by adding a 'type' column on the csv and setting its values to be 'foo' and 'bar'

example: _{ { date: 24/06/2021, val: 12, type: foo}, { date: 24/06/2021, val: 20, type: bar} ... }_

and splitting the series by the 'type' field, but I wanted to know if there was a way to create the chart without having to edit the csv.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 25, 2021, 7:10am UTC](https://discuss.elastic.co/t/kibana-splitting-series-by-field-names/276984/2 "2021-06-25T07:10:50Z")

</div>

This is absolutely possible in Kibana. Check out this tutorial ("Monitor multiple series within a date histogram"): [Time series analysis with Lens | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/create-a-dashboard-of-panels-with-ecommerce-data.html#add-a-data-layer-advanced)

It's explaining the concept with different series for various percentiles of the same data, but you can also create multiple metrics on the y axis based on different fields.

---

<div class="post-metadata">

**Author:** ![dineshgaglani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshgaglani/32/90802_2.png) [@dineshgaglani](https://discuss.elastic.co/u/dineshgaglani)\
**Post date:** [June 25, 2021, 4:06pm UTC](https://discuss.elastic.co/t/kibana-splitting-series-by-field-names/276984/3 "2021-06-25T16:06:32Z")

</div>

Thanks for the response @flash1293 , I'll try and update the thread.

---

<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 23, 2021, 4:06pm UTC](https://discuss.elastic.co/t/kibana-splitting-series-by-field-names/276984/4 "2021-07-23T16:06:57Z")

</div>

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