# Applying Filters

Filters can be used in various layouts but you will not necessarily want it to be applied on all visualizations or won't be able to do so.

After creation, filters are applied automatically on all applicable visualizations.

{% hint style="warning" %}
**Warning**

HKPIs aren't filtered by default because they generally provide a higher-level view.
{% endhint %}

**To apply a filter:**

1. Edit the Home or a story
2. Hover the filter
3. Click on the "pen" icon
4. Click on the "stroked funnel" button on the wanted visualization

{% hint style="success" %}
The "stroked funnel" should change to a "funnel" and the visualization should now respond to the app filter value changes.
{% endhint %}

<div align="center" data-full-width="true"><figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-fb811fbe6ed64aa47e7fdbc972eecc71012c96eb%2Fstroked-funnel.png?alt=media" alt="" width="184"><figcaption><p>Stroked funnel</p></figcaption></figure> <figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-a1974f1e6228dd76a05a4756cbe8093f0fc226ee%2Ffunnel.png?alt=media" alt="" width="184"><figcaption><p>Funnel</p></figcaption></figure></div>

**To disapply a filter:**

1. Edit the Home or a story
2. Hover the filter
3. Click on the "pen" icon
4. Click on the "funnel" button on the wanted visualization

{% hint style="success" %}
The "funnel" should change to a "stroked funnel" and the visualization should no longer respond to the app filter value changes.
{% endhint %}

**When the filter is not applicable:**

* You should see a "warning" icon on the visualization

<figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-db57aaf3ede194c9356017914ee9cf6d5b4eafee%2Fwarning-filter.png?alt=media" alt=""><figcaption><p>Warnign icon</p></figcaption></figure>

### **Can I apply a filter on a different dataset than its source?**

Indeed, filters can be applied to visualizations only if they share common dimensions to filter on. You can use a filter on visualization that doesn't share the same dataset but shares the same dimension in it.

**Example**

* My filter is created from a dataset "ref\_country" which is a referential of countries and their geographical zones. Its values come from the column "country".

| country   | zone          |
| --------- | ------------- |
| USA       | North America |
| Canada    | North America |
| Argentina | South America |

* My visualization is created from a dataset "sales\_by\_country" that logs every purchase and the country from which it was bought.

| product   | country   | purchased\_at |
| --------- | --------- | ------------- |
| Product A | USA       | 01-01-2023    |
| Product A | Argentina | 01-01-2023    |
| Product B | Argentina | 01-01-2023    |

In that case, both "ref\_country" and "sales\_by\_country" share the dimension "country".

{% hint style="success" %}
You're able to filter your visualization with the filter.
{% endhint %}
