# Split in Timelion

**URL:** https://discuss.elastic.co/t/split-in-timelion/92204
**Category:** Kibana
**Tags:** timelion
**Created:** [July 7, 2017, 5:15am UTC](https://discuss.elastic.co/t/split-in-timelion/92204 "2017-07-07T05:15:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vineetgoel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineetgoel/32/19840_2.png) [@vineetgoel](https://discuss.elastic.co/u/vineetgoel)
#### Post date: [July 7, 2017, 5:15am UTC](https://discuss.elastic.co/t/split-in-timelion/92204/1 "2017-07-07T05:15:44Z")

</div>

Hi, I am trying to use `split` in Kibana/Timelion. I am not being able to split by term when I use the parameter `.es(split:"foo.bar:10")`. Note here: `foo.bar` is a nested field in my document. Is this a known issue? I am no Kibana 4.5.4.

Further, is it, in this or the latest Kibana version, possible to split by data histogram (like the Line Chart allows), much like group by days for the splits?

Also do divides and other chain-able methods honor the split? For example can I do something like `.es(index='foo', metric='sum:field1', split='split_field:10').divide(.es(index='foo', metric='sum:field2', split='split_field:10'))` to get the sum(field1)/sum(field2) split by split\_field?

---

<div class="post-metadata">

### Author: ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)
#### Post date: [July 7, 2017, 4:21pm UTC](https://discuss.elastic.co/t/split-in-timelion/92204/2 "2017-07-07T16:21:57Z")

</div>

hi @vineetgoel,

as for your second question, yes, timelion respects the chaining on the splits.

As for your first question, how are your documents stored in ES? Can you share some examples of mapping with example documents?

---

<div class="post-metadata">

### Author: ![vineetgoel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineetgoel/32/19840_2.png) [@vineetgoel](https://discuss.elastic.co/u/vineetgoel)
#### Post date: [July 8, 2017, 1:53am UTC](https://discuss.elastic.co/t/split-in-timelion/92204/3 "2017-07-08T01:53:27Z")

</div>

Wait, so if I do `.es(index='foo', metric='sum:field1', split='split_field:10').divide(.es(index='foo', metric='sum:field2'))` will it divide the correct series split by split\_field from the numerator and denominator? That doesn't seem the behavior I am getting. It is basically using the entire series (not split by split\_field) in the denominator and only splitting in the numerator.

---

<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: [August 5, 2017, 1:53am UTC](https://discuss.elastic.co/t/split-in-timelion/92204/4 "2017-08-05T01:53:51Z")

</div>

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