# Kibana quick select value

**URL:** <https://discuss.elastic.co/t/kibana-quick-select-value/326490>\
**Category:** Kibana\
**Tags:** dashboard\
**Created:** [February 25, 2023, 8:16am UTC](https://discuss.elastic.co/t/kibana-quick-select-value/326490 "2023-02-25T08:16:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [February 25, 2023, 8:16am UTC](https://discuss.elastic.co/t/kibana-quick-select-value/326490/1 "2023-02-25T08:16:11Z")

</div>

Hi,

Is there a way to get a value from quick select (time range picker) in Kibana Lens , to be able to use this value into additional KQL filtering.  
My data is having two time fields. A user should be able to select/slice data based on timerange of a first field. Now I need to build time histogram based on the second time field.

So what I am thinking to do is to let user select timerange using quick select to slice data based on the first field. Once it is done IF I can extract the quick select value like ( now-7d) I could implement aflter that would only keep records that are within the corresponding timerange ( now-7d) based on the second timefield.

An easy example would be: I need to show quantity of sold product per day that been produced within now-7d.

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [February 25, 2023, 9:00am UTC](https://discuss.elastic.co/t/kibana-quick-select-value/326490/2 "2023-02-25T09:00:54Z")

</div>

Hi @not_correct!

It could be more convenient to add a time slider control to your dashboard [Filter dashboard data with controls | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/add-controls.html)

Also a panel can have a custom time range if necessary which can be configured via "Edit panel details" menu item.

"Inspect" menu item allows to view what exact time range was used in a request made by that dashboard panel.

---

<div class="post-metadata">

**Author:** ![not\_correct](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/not_correct/32/105273_2.png) [@not\_correct](https://discuss.elastic.co/u/not_correct)\
**Post date:** [February 25, 2023, 9:39am UTC](https://discuss.elastic.co/t/kibana-quick-select-value/326490/3 "2023-02-25T09:39:52Z")

</div>

Hi @jughosta,  
Thank you so much for your reply. I am wondering if a value set by timeslider control can be extracted to be used with KQL?

---

<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 25, 2023, 9:40am UTC](https://discuss.elastic.co/t/kibana-quick-select-value/326490/4 "2023-03-25T09:40:08Z")

</div>

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