> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Customizing filter suggestions

> Learn where filter suggestion values come from, and how to change their source, faceting, and caching behavior.

[All guides](https://docs.omni.co/guides.md)

Progress

%

Category

modeling

Last updated

August 2026

# Customizing filter suggestions

When you filter on a field in Omni, you get a list of suggested values to pick from. That list isn't a static lookup — it's a query Omni runs against your warehouse, which is why suggestions can load slowly, include values that don't fit the rest of your query, or go stale.

This guide covers where those values come from and the model parameters that change that behavior: where suggestions are sourced from, whether they narrow in response to other filters, and how long they're cached.

## How suggestions are sourced

By default, Omni populates up to 2,000 suggestions (not configurable) by querying the field's distinct values in the context of the topic the field belongs to:

```sql theme={null}
  SELECT field_filter_is_based_on
    FROM table
GROUP BY 1
   LIMIT 2000
```

Depending on the specifics of the model — for example, if the field is in a view other than the topic's base view — you may also see the relevant `JOIN` or `WHERE` clauses in the suggestion query.

## Changing the suggestion source

Three dimension parameters override the default query. Setting any of them means suggestions no longer come from the field's own distinct values.

<table>
  <thead>
    <tr>
      <th>Parameter</th>
      <th>Description</th>
      <th>Available on measures?</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>[`suggest_from_field`](https://docs.omni.co/modeling/dimensions/parameters/suggest-from-field)</td>
      <td>Pulls suggestions from a different field, usually one that queries faster</td>
      <td> [Yes](https://docs.omni.co/modeling/measures/parameters/suggest-from-field.md)</td>
    </tr>

    <tr>
      <td>[`suggest_from_topic`](https://docs.omni.co/modeling/dimensions/parameters/suggest-from-topic)</td>
      <td>Routes the suggestion query to a different topic</td>
      <td> No</td>
    </tr>

    <tr>
      <td>[`suggestion_list`](https://docs.omni.co/modeling/dimensions/parameters/suggestion-list)</td>
      <td>Sets the list of options explicitly, bypassing the query. Also allows you to set a display label separate from the underlying value, which is helpful when the stored value isn't intuitive.</td>
      <td> [Yes](https://docs.omni.co/modeling/measures/parameters/suggestion-list.md)</td>
    </tr>
  </tbody>
</table>

> [!NOTE]
>
> `suggest_from_field` and `suggest_from_topic` can't be used with [`faceting`](https://docs.omni.co/modeling/dimensions/parameters/faceting) on the same dimension.

## How other filters affect suggestions

When faceting is enabled, selecting values in one filter narrows the suggestions shown in other filters to values that exist alongside your current selections.

### Customizing per-dimension suggestion behavior

The [`faceting`](https://docs.omni.co/modeling/dimensions/parameters/faceting) parameter lets you customize how suggestions behave on a per-dimension basis.

> [tab] Independent of selections
>
> To make suggestions independent of all other filter selections, add `depends_on: []` as a child to `faceting`. In this example, `gender` suggestions will be available regardless of other filter selections:
>
> ```yaml wrap highlight={4,5} Suggestions are independent of other filter selections theme={null}
> dimensions:
>   gender:
>     sql: ${users.gender}
>     faceting:
>       depends_on: []
> ```
>
> **Note**: `depends_on` cannot be used with `exclude`.

> [tab] Depend on specified fields
>
> To make a dimension's suggestions dependent only on specific fields, specify a field list in `depends_on`. In this example, `city` suggestions should only be filtered by `country` and `state` selections, ignoring all other active filters:
>
> ```yaml wrap highlight={4-7} Suggestions are filtered only by specified fields theme={null}
> dimensions:
>   city:
>     sql: ${users.city}
>     faceting:
>       depends_on:
>         - country
>         - state
>
>   country:
>     sql: ${users.country}
>
>   state:
>     sql: ${users.state}
> ```
>
> **Note**: `depends_on` cannot be used with `exclude`.

> [tab] Exclude specified fields
>
> You can also configure a list of fields that will not affect suggestions using `exclude`. In this example, `first_name` suggestions should be filtered by all fields except `state`:
>
> ```yaml wrap highlight={4-6} Suggestions are filtered by all fields except those excluded theme={null}
> dimensions:
>   first_name:
>     sql: ${users.first_name}
>     faceting:
>       exclude:
>         - state
> ```
>
> **Note**: `exclude` cannot be used with `depends_on`.

### Enabling faceting across the workbook

[`facet_workbook_filters`](https://docs.omni.co/modeling/models/facet-workbook-filters) is disabled by default. Set it to `true` to turn faceting on for every filter in the workbook. When enabled, all filter suggestions in the workbook will be faceted based on the current filter selection.

> [!WARNING]
>
> Enabling this setting can make suggestion queries more complex and less cacheable, so they may run slower or return nothing where suggestions were expected.

## Caching and refreshing

Filter suggestions are retained for 30 days, independent of the model's [cache policy](https://docs.omni.co/modeling/models/cache-policies.md). To make them obey the policy's `max_cache_age` instead, set [`filter_suggestions_must_obey_policy`](https://docs.omni.co/modeling/models/cache-policies#param-filter-suggestions-must-obey-policy) to `true` on the cache policy:

```yaml wrap Obey cache policy & retain for 24 hours theme={null}
cache_policies:
  cache_for_a_day:
    max_cache_age: 24 hours
    filter_suggestions_must_obey_policy: true
```

> [!WARNING]
>
> Once `filter_suggestions_must_obey_policy` is set, it can't be removed, though its value can be changed.

### Refreshing stale filter suggestions

In rare circumstances, suggestions may be cached in a stale state. To enable the refresh option for a specific query:

* **Mac** - Hold `Command + Shift`
* **Windows** - Hold `Control + Shift`

A  icon will appear. Click it to refresh the filter suggestions.

This will refresh suggestions for the current query. If other queries have stale suggestions, you will need to repeat these steps on that query's filter.

![The filter suggestion menu with the refresh option enabled](https://mintcdn.com/omni-e7402367/tEEXCvkm6gwGODB-/guides/modeling/images/refresh-filter-suggestions.png?fit=max\&auto=format\&n=tEEXCvkm6gwGODB-\&q=85\&s=496f2e42259adb37f0b41496b0afe301)

The filter suggestion menu with the refresh option enabled

## Next steps

* Adding and configuring [filters](https://docs.omni.co/analyze-explore/queries/filters.md) on workbook queries
* [Troubleshooting filters](https://community.omni.co/t/why-doesnt-my-filter-show-all-possible-values-as-suggestions/54) not showing all expected values


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.