# Compare date range of uniq count

**URL:** <https://discuss.elastic.co/t/compare-date-range-of-uniq-count/201101>\
**Category:** Kibana\
**Created:** [September 25, 2019, 8:25pm UTC](https://discuss.elastic.co/t/compare-date-range-of-uniq-count/201101 "2019-09-25T20:25:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guaris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guaris/32/54879_2.png) [@Guaris](https://discuss.elastic.co/u/Guaris)\
**Post date:** [September 25, 2019, 8:25pm UTC](https://discuss.elastic.co/t/compare-date-range-of-uniq-count/201101/1 "2019-09-25T20:25:48Z")

</div>

How can I compare multiple date ranges (weekly ranges) by the uniq count of user\_id? I wanna see something like this:

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9ef67ba09046a6a740892944acf264a430a31964.png)

---

<div class="post-metadata">

**Author:** ![mikecote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikecote/32/58549_2.png) [@mikecote](https://discuss.elastic.co/u/mikecote)\
**Post date:** [September 26, 2019, 4:41pm UTC](https://discuss.elastic.co/t/compare-date-range-of-uniq-count/201101/2 "2019-09-26T16:41:01Z")

</div>

Hi @Guaris,

You should be able to do so with Timelion: [https://www.elastic.co/guide/en/kibana/current/timelion.html](https://www.elastic.co/guide/en/kibana/current/timelion.html).

Using an expression like ".es(\*), .es(offset=-1w)" should do the trick.

Mike.

---

<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:** [October 24, 2019, 4:41pm UTC](https://discuss.elastic.co/t/compare-date-range-of-uniq-count/201101/3 "2019-10-24T16:41:07Z")

</div>

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