# Filter by result of query

**URL:** <https://discuss.elastic.co/t/filter-by-result-of-query/172926>\
**Category:** Kibana\
**Created:** [March 19, 2019, 9:34am UTC](https://discuss.elastic.co/t/filter-by-result-of-query/172926 "2019-03-19T09:34:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![commentator8](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@commentator8](https://discuss.elastic.co/u/commentator8)\
**Post date:** [March 19, 2019, 9:34am UTC](https://discuss.elastic.co/t/filter-by-result-of-query/172926/1 "2019-03-19T09:34:17Z")

</div>

Hi,

If i have a visualisation that i want to filter to only show results for a certain date range, where the dates change occasionally and i can get them as the result of a query (top hit) - is this possible?

E.g. i have kv documents with sprint.start and sprint.end dates and i want to query this with top hits to find the most recent and use this to filter a visualisation.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [March 20, 2019, 4:08pm UTC](https://discuss.elastic.co/t/filter-by-result-of-query/172926/2 "2019-03-20T16:08:50Z")

</div>

This isn't currently possible (except in Canvas). It seems like a reasonable request, if you'd like to open a [feature request](https://github.com/elastic/kibana/issues/new?template=Feature_request.md).

---

<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 17, 2019, 4:08pm UTC](https://discuss.elastic.co/t/filter-by-result-of-query/172926/3 "2019-04-17T16:08:51Z")

</div>

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