Filter one value with other value

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?

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 feature which does pivots.