# Timelion: see avg. usage for 24h periode

**URL:** <https://discuss.elastic.co/t/timelion-see-avg-usage-for-24h-periode/81303>\
**Category:** Kibana\
**Created:** [April 5, 2017, 11:40am UTC](https://discuss.elastic.co/t/timelion-see-avg-usage-for-24h-periode/81303 "2017-04-05T11:40:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasper\_Nygaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasper_nygaard/32/4238_2.png) [@Jasper\_Nygaard](https://discuss.elastic.co/u/Jasper_Nygaard)\
**Post date:** [April 5, 2017, 11:40am UTC](https://discuss.elastic.co/t/timelion-see-avg-usage-for-24h-periode/81303/1 "2017-04-05T11:40:08Z")

</div>

It it possible to use Timelion to graph a e.g. number of unique users during 24h for e.g. 30 days data? So the x axis is just showing 24 hours, but graphing the avg. number of unique users based on 30 days data?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [April 5, 2017, 11:17pm UTC](https://discuss.elastic.co/t/timelion-see-avg-usage-for-24h-periode/81303/2 "2017-04-05T23:17:32Z")

</div>

You want to look at 30 days with a 1 day interval? So the number of unique users bucketed into each day?

You can do this in Kibana with unique count on an id unique to the user or in Timelion with the cardinality metric.

---

<div class="post-metadata">

**Author:** ![Jasper\_Nygaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasper_nygaard/32/4238_2.png) [@Jasper\_Nygaard](https://discuss.elastic.co/u/Jasper_Nygaard)\
**Post date:** [April 6, 2017, 7:08am UTC](https://discuss.elastic.co/t/timelion-see-avg-usage-for-24h-periode/81303/3 "2017-04-06T07:08:54Z")

</div>

No, say I want to evaluate user activity for a system, to answer the question "When are our users most inactive during a 24h period?". I want to use the last 30 days of data, calculate the average for each hour and graph this.

---

<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:** [May 4, 2017, 7:09am UTC](https://discuss.elastic.co/t/timelion-see-avg-usage-for-24h-periode/81303/4 "2017-05-04T07:09:23Z")

</div>

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