# Filter / query

**URL:** https://discuss.elastic.co/t/filter-query/253772
**Category:** Kibana
**Created:** [October 30, 2020, 5:13am UTC](https://discuss.elastic.co/t/filter-query/253772 "2020-10-30T05:13:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![peretz\_shlomi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peretz_shlomi/32/54701_2.png) [@peretz\_shlomi](https://discuss.elastic.co/u/peretz_shlomi)
#### Post date: [October 30, 2020, 5:13am UTC](https://discuss.elastic.co/t/filter-query/253772/1 "2020-10-30T05:13:58Z")

</div>

Hello everyone

i have a dashboard is consists number of visualize  
I want to filter some of visualize by the last value in a particular field.  
How can I do that?

---

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [November 2, 2020, 1:37pm UTC](https://discuss.elastic.co/t/filter-query/253772/2 "2020-11-02T13:37:21Z")

</div>

Hi,  
can you please describe a bit more the current data structure and the type of visualization you are showing and what will be the desired output when filtering?

---

<div class="post-metadata">

### Author: ![peretz\_shlomi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peretz_shlomi/32/54701_2.png) [@peretz\_shlomi](https://discuss.elastic.co/u/peretz_shlomi)
#### Post date: [November 3, 2020, 6:08am UTC](https://discuss.elastic.co/t/filter-query/253772/3 "2020-11-03T06:08:09Z")

</div>

The system is used by me for a production line that is constantly changing the product part number  
I want to filter the visualization to display the data for the last product that works  
the visualization on the picture you show 2048-92516 - is show the last product part number  
I want the system to filter the rest of the visualization on the dashboard

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c415dbf81f2fc4045f230d3b8d94d4cd4f6a782.jpeg)

---

<div class="post-metadata">

### Author: ![Vadims\_Daleckis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadims_daleckis/32/57613_2.png) [@Vadims\_Daleckis](https://discuss.elastic.co/u/Vadims_Daleckis)
#### Post date: [November 3, 2020, 1:40pm UTC](https://discuss.elastic.co/t/filter-query/253772/4 "2020-11-03T13:40:26Z")

</div>

Hello @peretz_shlomi,

I don't think it is currently possible to achieve exactly what you are looking for. But you could use the Controls visualization to create a dropdown with your product IDs, and then select the product ID.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae202a2152f1c7bc967467ef3b8db9892d300619.jpeg)

Another option could be to create a chart or a table with the latest product IDs, then add a drilldown for that chart [https://www.elastic.co/guide/en/kibana/current/drilldowns.html](https://www.elastic.co/guide/en/kibana/current/drilldowns.html) which would filter the dashboard based on the ID of the product you clicked on.

---

<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 1, 2020, 1:40pm UTC](https://discuss.elastic.co/t/filter-query/253772/5 "2020-12-01T13:40:30Z")

</div>

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