# Dashboard level DSL filter does not work for Vega/Aggregate charts

**URL:** <https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [December 20, 2023, 5:40pm UTC](https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746 "2023-12-20T17:40:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiyuewan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiyuewan/32/130202_2.png) [@xiyuewan](https://discuss.elastic.co/u/xiyuewan)\
**Post date:** [December 20, 2023, 5:40pm UTC](https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746/1 "2023-12-20T17:40:08Z")

</div>

Hello - I have a dashboard level DSL filter (geo filter) and it won't apply to aggregate charts and vega charts, but works fine for Lens. Is this expected?

---

<div class="post-metadata">

**Author:** ![drewdaemon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewdaemon/32/97779_2.png) [@drewdaemon](https://discuss.elastic.co/u/drewdaemon)\
**Post date:** [December 20, 2023, 7:48pm UTC](https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746/2 "2023-12-20T19:48:13Z")

</div>

Do you have `context` set to `true` in your Vega config ([doc](https://www.elastic.co/guide/en/kibana/current/vega.html#vega-queries))?

---

<div class="post-metadata">

**Author:** ![xiyuewan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiyuewan/32/130202_2.png) [@xiyuewan](https://discuss.elastic.co/u/xiyuewan)\
**Post date:** [December 20, 2023, 9:40pm UTC](https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746/3 "2023-12-20T21:40:41Z")

</div>

Yes I did!

---

<div class="post-metadata">

**Author:** ![drewdaemon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewdaemon/32/97779_2.png) [@drewdaemon](https://discuss.elastic.co/u/drewdaemon)\
**Post date:** [December 20, 2023, 10:48pm UTC](https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746/4 "2023-12-20T22:48:25Z")

</div>

If you inspect the vega spec, do you see the filter anywhere in the "url" section?

![ezgif.com-video-to-gif-converted](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9f2980d09e156d71607e376d96fe4a787f10d3cf.gif)

---

<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:** [January 17, 2024, 10:48pm UTC](https://discuss.elastic.co/t/dashboard-level-dsl-filter-does-not-work-for-vega-aggregate-charts/349746/5 "2024-01-17T22:48:56Z")

</div>

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