# Keep the hour range and set the day dynamically

**URL:** <https://discuss.elastic.co/t/keep-the-hour-range-and-set-the-day-dynamically/378922>\
**Category:** Kibana\
**Tags:** kql-kibana-query-language, visualisation\
**Created:** [June 5, 2025, 1:44pm UTC](https://discuss.elastic.co/t/keep-the-hour-range-and-set-the-day-dynamically/378922 "2025-06-05T13:44:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [June 9, 2025, 12:15pm UTC](https://discuss.elastic.co/t/keep-the-hour-range-and-set-the-day-dynamically/378922/7 "2025-06-09T12:15:44Z")

</div>

Hello @Torado

Adding one more idea to the list if it works for you :

> [@Two different controls to be applied on two separate visualizations on one dashboard](https://discuss.elastic.co/t/two-different-controls-to-be-applied-on-two-separate-visualizations-on-one-dashboard/378943/4):
>
> Hello @rubic Could you please confirm if you want to compare data for any specific range? Like if we want to compare can use below logic : Step 1 : Add similar metric for comparison - Step 2 : for the second metric use below configuration , use timeshift as per your need 1d,1w,1m So in same graph it compares count of today with yesterday. Hope it helps. Thanks!!

Thanks!!

---

_[View the full topic](https://discuss.elastic.co/t/keep-the-hour-range-and-set-the-day-dynamically/378922)._
