# How do I reference a filter value? (Filters as parameters)

**URL:** <https://community.omni.co/t/how-do-i-reference-a-filter-value-filters-as-parameters/74>\
**Category:** Modeling\
**Created:** [May 29, 2024, 7:17pm UTC](https://community.omni.co/t/how-do-i-reference-a-filter-value-filters-as-parameters/74 "2024-05-29T19:17:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![conner](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.omni.co/conner/32/11_2.png) [@conner](https://community.omni.co/u/conner)\
**Post date:** [May 29, 2024, 7:17pm UTC](https://community.omni.co/t/how-do-i-reference-a-filter-value-filters-as-parameters/74/1 "2024-05-29T19:17:59Z")

</div>

Referencing a filter value in your query or dashboard can be a great way to improve interactivity within Omni. For example:

1. **Explicitly highlight filter values on a dashboard:** Highlight how dashboard filters are interacting to make it clear for less techncial users.  

2. **Create “linked” dashboards** : Set up dynamic links on fields that will carry filters from one dashboard to the next. For example, transfer the “Country” filter value from an Orders Overview table to an Order Items Lookup table:  

### How to implement this

**Syntax for filter parameters**  
You can use mustache syntax to reference filters as parameters in your model file or in markdown. The syntax looks like this:

`{{ filters.[view_name].[filter_name].value }}`

For example, in the image #1 above, the markdown powering that tile looks like this:

> This dashboard is analyzing orders in **{{filters.users.state.value}}** within the **{{filters.users.country.value}}**.

**Using your filters to link between dashboards**  
With the syntax above, you can insert a filter value into a link in your model file and transfer a filter value from one dashboard to another, as in example #2 above. To do this, you can follow our [documentation](https://docs.omni.co/docs/modeling/dimensions/#links) and see more context in this [Community article](https://community.omni.co/t/can-i-add-url-links-to-a-visualization/39). Instead of adding a reference to an existing field (e.g. ${users.country}), you’ll add a reference to a filter (e.g. {{filters.users.country.value}}).

In example #2 above, the model definition for the `id` field looks like this:

 ![ide_link_definition](https://canada1.discourse-cdn.com/flex004/uploads/omni/original/1X/0f32d477a078d603cad7cf640a2ac73f85490ccf.png)

**Note:** If you insert a filter reference into your dashboard link, but there is no filter applied, the link will still work — it’ll just take you to the dashboard without the filter applied.
