# Get access to user selected filter value in Kibana

**URL:** <https://discuss.elastic.co/t/get-access-to-user-selected-filter-value-in-kibana/205614>\
**Category:** Kibana\
**Created:** [October 29, 2019, 8:47am UTC](https://discuss.elastic.co/t/get-access-to-user-selected-filter-value-in-kibana/205614 "2019-10-29T08:47:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkata\_Naresh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata_naresh/32/51355_2.png) [@Venkata\_Naresh](https://discuss.elastic.co/u/Venkata_Naresh)\
**Post date:** [October 29, 2019, 8:47am UTC](https://discuss.elastic.co/t/get-access-to-user-selected-filter-value-in-kibana/205614/1 "2019-10-29T08:47:57Z")

</div>

I have a drop down viz in Kibana which will list all the years. When the user selected an Year from the list, I want the data for next 2 years. For Ex: If user selects 2015 as Year, I want data for 2015,2016 and 2017.

As of now, when the user selects 2015, entire ES data is filtered with 2015, but I want the next consecutive years also.

So how can I access the user selected value (2015), so that I can use it and modify data selection using 3rd party plugins.

Thanks & Regards

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [November 18, 2019, 3:13pm UTC](https://discuss.elastic.co/t/get-access-to-user-selected-filter-value-in-kibana/205614/2 "2019-11-18T15:13:45Z")

</div>

This sounds like an overcomplication. The user should just use the timepicker in the top right and just pick the year in the "From" field for an absolute data range.

---

<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 16, 2019, 3:13pm UTC](https://discuss.elastic.co/t/get-access-to-user-selected-filter-value-in-kibana/205614/3 "2019-12-16T15:13:52Z")

</div>

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