# Filter one value with other value

**URL:** <https://discuss.elastic.co/t/filter-one-value-with-other-value/269103>\
**Category:** Kibana\
**Created:** [April 2, 2021, 12:02pm UTC](https://discuss.elastic.co/t/filter-one-value-with-other-value/269103 "2021-04-02T12:02:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![domra](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@domra](https://discuss.elastic.co/u/domra)\
**Post date:** [April 2, 2021, 12:02pm UTC](https://discuss.elastic.co/t/filter-one-value-with-other-value/269103/1 "2021-04-02T12:02:31Z")

</div>

Hi!

I want to apply a filter to an TSVB metric visualization where I filter all documents, where one value is between a offset of another value. something like this:

```
valueA: [valueB-1 TO valueB+1]

```

Is something like this possible?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [April 2, 2021, 2:42pm UTC](https://discuss.elastic.co/t/filter-one-value-with-other-value/269103/2 "2021-04-02T14:42:38Z")

</div>

Hi, welcome to the Kibana forums. This feature isn't supported in any of the built-in Kibana visualizations, because they all use a single request to fetch data. What you're asking for involves making a sequence of requests.

If you need to make this kind of query you will need to add something to the Elasticsearch index so that it becomes possible in a single query. You can do this in whatever tool you use to add data to Elasticsearch, or you can try using the Elasticsearch [transforms](https://www.elastic.co/guide/en/elasticsearch/reference/current/transforms.html) feature which does pivots.

---

<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 30, 2021, 2:42pm UTC](https://discuss.elastic.co/t/filter-one-value-with-other-value/269103/3 "2021-04-30T14:42:47Z")

</div>

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