# timeSeries Aggregation

**URL:** <https://discuss.elastic.co/t/timeseries-aggregation/118458>\
**Category:** Elasticsearch\
**Created:** [February 5, 2018, 1:39pm UTC](https://discuss.elastic.co/t/timeseries-aggregation/118458 "2018-02-05T13:39:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moshe\_Sharon](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Moshe\_Sharon](https://discuss.elastic.co/u/Moshe_Sharon)\
**Post date:** [February 5, 2018, 1:39pm UTC](https://discuss.elastic.co/t/timeseries-aggregation/118458/1 "2018-02-05T13:39:26Z")

</div>

hi there ,  
Can I aggregate on time series depending on state? e.g.

if a group of people took a pill on different occasions. and I want to see the impact of the group blood pressure on the continuing week. can I do this kind of aggregation?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 7, 2018, 9:40am UTC](https://discuss.elastic.co/t/timeseries-aggregation/118458/2 "2018-02-07T09:40:22Z")

</div>

It is super hard to answer this question without the data model. As it sounds that you need some context from older actions, it might make sense to take a look at the entity centric indexing approach.

There is a talk by Mark out there, that might be worth watching (plus searching for entity centric indexing should give some more hints).

[https://www.elastic.co/elasticon/2015/sf/building-entity-centric-indexes](https://www.elastic.co/elasticon/2015/sf/building-entity-centric-indexes)

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [February 7, 2018, 1:27pm UTC](https://discuss.elastic.co/t/timeseries-aggregation/118458/3 "2018-02-07T13:27:12Z")

</div>

At elasticon 2015 the video guys forgot to hit "record" for a lot of talks (unsurprisingly they didn't get the 2016 contract).

A re-run of that talk is here: [https://www.youtube.com/watch?v=yBf7oeJKH2Y](https://www.youtube.com/watch?v=yBf7oeJKH2Y)

---

<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:** [March 7, 2018, 1:27pm UTC](https://discuss.elastic.co/t/timeseries-aggregation/118458/4 "2018-03-07T13:27:12Z")

</div>

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