# How to include the timestamp filter value in the dropdown filter?

**URL:** <https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [October 25, 2022, 8:15am UTC](https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380 "2022-10-25T08:15:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drizzt\_yin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drizzt_yin/32/112484_2.png) [@drizzt\_yin](https://discuss.elastic.co/u/drizzt_yin)\
**Post date:** [October 25, 2022, 8:15am UTC](https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380/1 "2022-10-25T08:15:49Z")

</div>

Hi,

In the drop-down filter, I want to reference the ts field value from the timestamp filter. How to do this?

 ![WX20221025-161429@2x](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5d2aa90b39cf7cb7139939d125abb0d1d986d217.png)

Thanks,  
Eason

---

<div class="post-metadata">

**Author:** ![drizzt\_yin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drizzt_yin/32/112484_2.png) [@drizzt\_yin](https://discuss.elastic.co/u/drizzt_yin)\
**Post date:** [October 26, 2022, 2:39am UTC](https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380/2 "2022-10-26T02:39:57Z")

</div>

Could any master give some examples for this? Really thanks a lot!

---

<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:** [November 22, 2022, 7:50am UTC](https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380/3 "2022-11-22T07:50:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [November 22, 2022, 12:10pm UTC](https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380/4 "2022-11-22T12:10:36Z")

</div>

can you show full expressions for both controls ?

something like this should work:

timefilter:

`timeFilterControl column=@timestamp compact=true filterGroup="timeGroup"`

dropdown filter:

`kibana | selectFilter group="timeGroup" | essql "select userMail from "mytable" | ...`

---

<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:** [December 20, 2022, 12:10pm UTC](https://discuss.elastic.co/t/how-to-include-the-timestamp-filter-value-in-the-dropdown-filter/317380/5 "2022-12-20T12:10:39Z")

</div>

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