# Global Filter

{% hint style="success" %}
*Check out the given illustration to understand the Global Filter functionality.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2F3gj1AFlI8UCT4u2sOsSe%2FGlobal%20Filter.mp4?alt=media&token=ec508dd9-e15f-406e-8ecf-a19b9ae91be9>" %}
***Global Filter Functionality***
{% endembed %}

## Applying Global Filter

* Click the ***Global Filter*** icon provided on the Storyboard.
* A filter panel opens, displaying a list of values that can be used as a filter condition.
* Click on a Dimension to display a list containing all the sub-dimensions (Clicking a measure or time dimension would display the related fields).
* Select the ***In*** or ***Not In*** option from the drop-down menu to apply the filtering condition. (E.g., the below-given image displays ***In*** as the selected option so that the story gets filtered as per the chosen sub-dimension(s).
* Select sub-dimension(s) using checkmark(s).
* Click the ***Apply*** icon.

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2FpgiTFVJ0oLvVbQ7brkTL%2Fimage.png?alt=media&#x26;token=f57487b2-5968-4159-bfd4-93c21184214f" alt=""><figcaption><p><em><strong>Applying a Global Filter condition</strong></em></p></figcaption></figure>

* The Global Filter icon gets highlighted.
* The concerned views on the Storyboard get customized as per the applied Global Filter condition. E.g., All the displayed views have been filtered by the selected Global filter value in the below-given storyboard image.

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2F9YJxBbyHz7zXJbEpc6kv%2Fimage.png?alt=media&#x26;token=8614b51b-cc19-43c3-a0dc-3080280a6555" alt=""><figcaption><p>All the saved Views get filtered as per the applied Global Filter</p></figcaption></figure>

* By selecting the ***Not In*** option, .&#x20;

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2FOEwuqo6bW8NocFdGiq4n%2Fimage.png?alt=media&#x26;token=cffcd4c3-f3fd-4c58-afe5-fc37012a44c5" alt=""><figcaption><p><em>The <strong>Not in</strong> option is selected</em> </p></figcaption></figure>

* The Story (views) gets filtered by not selected filter conditions. E.g., In this example the Story data gets filtered by DIV5 value.

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2FAE8wteQ3mimzW2FStY6r%2Fimage.png?alt=media&#x26;token=06cfdb59-6744-46a8-8376-48442475ffd2" alt=""><figcaption></figcaption></figure>

## Filter Panel

The Global Filter provides an option to Attach the selected filter value to the filter panel.&#x20;

* Open the ***Global Filter*** panel.
* Click the ***Attach to filter panel*** icon.

&#x20;     ![](https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2Fw5fY5IgEZMfdGXCyRuCd%2Fimage.png?alt=media\&token=1d16f3d8-1f33-4b39-a8c8-92a2d39a318f)

* The concerned value gets attached to the top filter panel.

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2F1mfBpQlgL7GCmXZeuh3f%2Fimage.png?alt=media&#x26;token=eca2985f-f3d2-41ca-a5ea-c63799dee6c0" alt=""><figcaption></figcaption></figure>

* Choose the sub-value for the attached filter from the top filter panel.
* Click the ***Apply*** option given at the top of the Story.

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2FnWbRUWmRWrjHyyryiZXK%2Fimage.png?alt=media&#x26;token=eb9961ae-71f0-4d4f-a7f5-a41d480b07ec" alt=""><figcaption></figcaption></figure>

* The selected value/sub-value gets applied to the entire Story.

<figure><img src="https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2FUJtKRAa22FUivP1rsfpY%2Fimage.png?alt=media&#x26;token=d973c019-c7c6-4b56-a3da-ec9158b6bc1f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*

* *A **Search** bar has been provided for the Global Filter panel to search the available Dimensions, Measures, and Time values.*

&#x20;     ![](https://2901669703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlDujAVyCdhp5J6LyuJ1%2Fuploads%2FsGrN3xK8TSEoh0hQ0LiC%2Fimage.png?alt=media\&token=8d550097-e433-4223-9087-f21d0e29e320)

* *The global filter can be applied only to those views on the storyboard, where the filter values are used as dimensions.*
* *A global filter, when applied to various views on a storyboard, subdues the view-specific filter values.*
* *The user can insert views created via different data stores on one Storyboard. By default, the Global filter panel displays all the available filter values across the data stores.*
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/self-service-visualization-1/applying-filters/global-filter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
