# Model timeseries using a date range

**URL:** <https://discuss.elastic.co/t/model-timeseries-using-a-date-range/132745>\
**Category:** Kibana\
**Created:** [May 22, 2018, 8:11am UTC](https://discuss.elastic.co/t/model-timeseries-using-a-date-range/132745 "2018-05-22T08:11:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_M](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@Erik\_M](https://discuss.elastic.co/u/Erik_M)\
**Post date:** [May 22, 2018, 8:11am UTC](https://discuss.elastic.co/t/model-timeseries-using-a-date-range/132745/1 "2018-05-22T08:11:50Z")

</div>

I'm wondering if anyone knows a way to model a timeseries, either by using kibana visualize or timelion, using a date range. I.e. the aggregated "count" for a specific date X should be a sum of the datapoints with a time starts\<X\<ends.  
Grateful for any help

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 22, 2018, 8:28am UTC](https://discuss.elastic.co/t/model-timeseries-using-a-date-range/132745/2 "2018-05-22T08:28:26Z")

</div>

Unless I am misunderstanding, this is what Kibana does natively using aggregations.

---

<div class="post-metadata">

**Author:** ![Erik\_M](https://avatars.discourse-cdn.com/v4/letter/e/3bc359/32.png) [@Erik\_M](https://discuss.elastic.co/u/Erik_M)\
**Post date:** [May 22, 2018, 8:39am UTC](https://discuss.elastic.co/t/model-timeseries-using-a-date-range/132745/3 "2018-05-22T08:39:53Z")

</div>

Then I must be misunderstanding something.  
My scenario is as following: Each datapoint is a license with a life-length, from date "STARTS" to date "ENDS". I would like to model, preferably using the line visualisation tool, across time the amount of "active" licenses. I.e. every point on the x-axis is the amount of "active" licenses at that date. However in the line visualisation tool I can only pick one date if I'm understanding it correctly? (in x-axis using Date Range aggregation).

---

<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:** [June 19, 2018, 8:39am UTC](https://discuss.elastic.co/t/model-timeseries-using-a-date-range/132745/4 "2018-06-19T08:39:55Z")

</div>

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