# Kibana dashboard DSL aggregations problem

**URL:** https://discuss.elastic.co/t/kibana-dashboard-dsl-aggregations-problem/278014
**Category:** Kibana
**Created:** [July 7, 2021, 4:40am UTC](https://discuss.elastic.co/t/kibana-dashboard-dsl-aggregations-problem/278014 "2021-07-07T04:40:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [July 7, 2021, 7:27am UTC](https://discuss.elastic.co/t/kibana-dashboard-dsl-aggregations-problem/278014/2 "2021-07-07T07:27:05Z")

</div>

You can't use aggregations in a filter - filter only operate on a per-document basis.

Can you explain which kind of visualization you want to build? Maybe there's another way to achieve your goal.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-dashboard-dsl-aggregations-problem/278014)._
