> For the complete documentation index, see [llms.txt](https://docs.myjuicebox.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myjuicebox.io/building-reports/story-designer/slices/charts/filters.md).

# Filters

The Filter slice allows users to select dimension values to filter downstream results. One or more dimensions can be included in a Filter slice and each dimension will appear as a "pill." When the user clicks on the pill, the dimension values appear in a dropdown and the user can select values from the dropdown. Here's an example of a Filter slice:

<figure><img src="https://872636700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmfYn9Ab4YpIl0ZZFm-%2Fuploads%2FlynnZ6dGqmrKebUBlFQH%2Fimage.png?alt=media&amp;token=8ec20863-c514-41e0-aa70-445139e64f01" alt=""><figcaption><p>Example Filter slice</p></figcaption></figure>

The **Configure** tab has the following option (in addition to the [common slice configuration options](/building-reports/story-designer/slices.md#common-slice-configuration-options)):

**Pick columns to filter on**. Select one or more dimension ingredients to include as filters. Here's the **Configure** tab for the example above:

<figure><img src="https://872636700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmfYn9Ab4YpIl0ZZFm-%2Fuploads%2Fci1C6mOtXsBrAAhexrsC%2Fimage.png?alt=media&amp;token=bb807ceb-fa22-4a2d-af7b-4f006e8cfac2" alt=""><figcaption><p>Filter slice <strong>Configure</strong> tab</p></figcaption></figure>

The **Style** tab has the following options (in addition to the [common slice configuration options](/building-reports/story-designer/slices.md#common-slice-configuration-options)):

**Direction**. If **Horizontal** is selected, the pills will display side-by-side. If Vertical is selected, the pills will be stacked vertically.

**Alignment**. Select **Center**, **Left**, or **Right** to adjust how pills are aligned within the slice.

**Hide counts**. By default, the number of distinct dimension values will appear in the pill. Enable this option to hide the counts from the pill.

Here's the **Style** tab for the example above:

<figure><img src="https://872636700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmfYn9Ab4YpIl0ZZFm-%2Fuploads%2Fr5yNcECp9GmIfMgUqyKa%2Fimage.png?alt=media&amp;token=3001456d-0221-4c40-998a-3a8ba4afb35f" alt=""><figcaption><p>Filter slice <strong>Style</strong> tab</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.myjuicebox.io/building-reports/story-designer/slices/charts/filters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
