# Display date range

**URL:** <https://discuss.elastic.co/t/display-date-range/328087>\
**Category:** Kibana\
**Tags:** visualisation\
**Created:** [March 20, 2023, 2:25pm UTC](https://discuss.elastic.co/t/display-date-range/328087 "2023-03-20T14:25:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Stankovic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_stankovic/32/118676_2.png) [@Igor\_Stankovic](https://discuss.elastic.co/u/Igor_Stankovic)\
**Post date:** [March 20, 2023, 2:25pm UTC](https://discuss.elastic.co/t/display-date-range/328087/1 "2023-03-20T14:25:35Z")

</div>

Hi there!

I am wondering if there is a possibility to display the selected date range filter in a lens in Kibana.

The issue for me is that when in full screen in view mode, the currently selected date range is hidden away, so I get questions from people "Is this data for the last 30 days or for a week or...?" etc. What I would need is to create a simple lens (for instance, metric) where I would simply display something like "Number of clicks in " (where is the date range parameter and so if, for example, the filter is set to "last 7 days", the lens would say "Number of clicks in last 7 days").

Any hint on how I could do this (or display the selected date range filter in full screen view mode) would be really helpful!

Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![devon.thomson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devon.thomson/32/85468_2.png) [@devon.thomson](https://discuss.elastic.co/u/devon.thomson)\
**Post date:** [March 20, 2023, 8:24pm UTC](https://discuss.elastic.co/t/display-date-range/328087/2 "2023-03-20T20:24:34Z")

</div>

I don't believe there is any way to write out the selected time range in Lens in something like a metric, but you could potentially try building out a chart in Lens using a [date histogram](https://www.elastic.co/guide/en/kibana/current/create-a-dashboard-of-panels-with-ecommerce-data.html). That way your users could visually see the time range start and end times on the x axis of a chart, and you could also break the data down by any interval that makes sense, like per day per instance.

Not sure if this is exactly what you're looking for, but I hope it could be close enough.

Alternatively, if you know your time range will be static-ish (i.e. the users in full screen mode can't see it so they won't be changing it likely) you could write out the time range in a Markdown component.

---

<div class="post-metadata">

**Author:** ![Igor\_Stankovic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_stankovic/32/118676_2.png) [@Igor\_Stankovic](https://discuss.elastic.co/u/Igor_Stankovic)\
**Post date:** [March 21, 2023, 10:57am UTC](https://discuss.elastic.co/t/display-date-range/328087/3 "2023-03-21T10:57:42Z")

</div>

Thank you for your reply!

I actually just need to display the total number of reports in Elastic for a certain time range, so a date histogram would not work. But, it is a bit static-ish, I guess, so I'll try the Markdown approach.

Thanks 🙂

---

<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:** [April 18, 2023, 10:58am UTC](https://discuss.elastic.co/t/display-date-range/328087/4 "2023-04-18T10:58:32Z")

</div>

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