# How to add a global dashboard filter that will only be shown when the dashboard is not embedded

**URL:** <https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284>\
**Category:** Kibana\
**Created:** [January 6, 2021, 7:42am UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284 "2021-01-06T07:42:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [January 6, 2021, 7:42am UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/1 "2021-01-06T07:42:23Z")

</div>

Hi,  
I'm trying to add a filter to a dashboard without the filter shown in the embedded dashboard.  
Is there a way to do so? Add it in edit mode, save it and somehow for it not to be visible to the user while he is using my site.

Thanks

---

<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:** [January 6, 2021, 3:28pm UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/2 "2021-01-06T15:28:50Z")

</div>

Yes, but you can't save the filters- if they are saved to the dashboard they will get loaded every time. So you can either:

- Have no filters saved to the dashboard, and add filters each time you need them. A shortcut for this is to use a Saved Query which contains the filters
- Another shortcut for this is to bookmark the URL of the dashboard with the correct filters

---

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [January 10, 2021, 9:08am UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/3 "2021-01-10T09:08:00Z")

</div>

Hi,  
The saved query as you said is a shortcut but it is still seen at the filters bar.

No way to not see the filters at all?

Thanks

---

<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:** [January 11, 2021, 4:02pm UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/4 "2021-01-11T16:02:21Z")

</div>

Using the Share \> Embed code options you can get an iframe URL that hides the filter bar entirely- it's a relatively new feature, if my memory is correct it's from 7.6 and higher

---

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [January 17, 2021, 7:52am UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/5 "2021-01-17T07:52:17Z")

</div>

Thanks, but I d want the filter bar to be shown.

---

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [January 17, 2021, 7:53am UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/6 "2021-01-17T07:53:18Z")

</div>

I think we found how to do this.  
Add an index alias with this filter and use this alias with out index pattern

Thanks!

---

<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:** [February 14, 2021, 7:53am UTC](https://discuss.elastic.co/t/how-to-add-a-global-dashboard-filter-that-will-only-be-shown-when-the-dashboard-is-not-embedded/260284/7 "2021-02-14T07:53:38Z")

</div>

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