How to intercept kibana request from ES to use only a subset of data

I'm trying to intercept Kibana query to ES. I need for the Dashboards only to use a subset of documents as it's DATA. This can't be achieved as a dashboard filter.

How can this be achieved? Do I need to intercept the query? how do I only use a subset of the index data for the Kibana visualizations?


On filters if you click Edit as Query DSL you can write your own query to get that subset you need.