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

# Filter and sort a table

> Show only some of a Dimension's items on a Table block, hide one item, find and clear a filter (unfilter a row or column), filter a list by a column's value, change a filter Ari wrote as a formula, sort items A to Z, Z to A, or in your own order, and sort rows by a column's values, such as largest Revenue first.

Use a filter to show only some of a Dimension's items on a table, such as two departments out of ten, and a sort to put the items in order. Filters and sorts change only this table, and everyone who opens it sees the same view. They never change a number in your Model.

You need a desktop browser and edit access to the Page.

## Filter a table to show only some items

> [tab] Ask Ari
>
> > On the Payroll table, show only the Sales and Marketing departments.

> [tab] By hand
>
> **1. Open the Dimension's menu**
>
> Right-click the Dimension's label row, such as **DEPARTMENT** above its items. Or right-click one of its items and choose **\[Department] dimension settings**.
>
> **2. Choose Filter items**
>
> Choose **Filter items**. A list of the Dimension's items opens.
>
> **3. Pick the items to keep**
>
> Check the items to show. Type in **Search items** to find one in a long list.
>
> **4. Save**
>
> Select **Save**.

**Filter items** is in the menu for Dimensions in the rows. For a Dimension in the columns, use the table setup panel: select **Show table setup** at the left of the table header, point at the Dimension under **Columns**, and select its funnel button. The same list opens.

## Hide one item

Right-click the item, such as **Contractors**, and choose **Filter out this item**. The table must keep at least one item, so you cannot filter out the last one.

## Clear a filter so every item shows again

A filter leaves no mark on the table itself. To check whether a Dimension is filtered, open **Show table setup**: a funnel with a number beside a Dimension shows how many items the filter keeps. In the right-click menu, **Filter items** shows the same number.

To clear the filter:

**1. Open the filter list**

Right-click the Dimension's label row and choose **Filter items**, or select its funnel in the table setup panel.

**2. Choose All Items**

Select **All Items** at the top of the list.

**3. Save**

Select **Save**. Every item shows again, including any you filtered out with **Filter out this item**.

## A filter Ari wrote as a formula

Ari can filter an axis by a condition instead of a list of items, such as the employees whose Status is Active, or the customers whose Amount in a month you name is above zero. The condition calculates the way a formula does: it can read the axis's own Dimensions and the Variables and periods it names in full, such as an employee's Department or a customer's August 2026 Amount.

When you open **Filter items** or the funnel on such an axis, the list opens with a **Filter formula** section at the top that shows the condition, read-only, above the item checkboxes. To change or remove it, select **Edit with Ari**: a request with the table and the axis attached lands in the message box for you to finish and send. The list has no field to edit the condition and no button to remove it. The checkboxes below are a separate filter and keep working, but **Edit with Ari** closes the list without saving them, so select **Save** first when you also changed a checkbox.

> Remove the formula filter on the Employee axis of the Headcount table and show every employee.

## Filter a list by a column's value

You can filter a table that lists records, such as one row per employee, by a column's value. This works for a column that shows which item each row belongs to, such as Status or Department.

1. Right-click the column header, such as **Status**, and choose **Filter**.
2. Check the values to keep under **Show rows where Status is**, and select **Save**.

A funnel then appears in the column header. Point at it to see which values the filter keeps. To change or clear it, select the funnel; choose **Any value** and **Save** to show every row again.

## Sort items A to Z, Z to A, or in your own order

> [tab] Ask Ari
>
> > On the Payroll table, list the departments in this order: Sales, Marketing, Engineering, then the rest.

> [tab] By hand
>
> **1. Open the Dimension's menu**
>
> Right-click the Dimension's label row, or choose **\[Department] dimension settings** from one of its items.
>
> **2. Choose a sort**
>
> Choose **Sort**, then:
>
> * **Ascending** for A to Z, or smallest to largest for number items.
> * **Descending** for Z to A.
> * **Manual** for your own order. Drag the items in the list that opens; each move saves.
> * **None** to return to the standard order, A to Z.

You can also drag item rows up or down by the grip at their left edge. The Dimension then switches to **Manual**. The table setup panel has the same choices behind each Dimension's sort button.

A sort applies to the whole level, so every group on the table that shows that Dimension lists its items in the same order.

## Sort rows by a column's values

> [tab] Ask Ari
>
> > On the Customers table, sort the rows by Customer First ARR Month, oldest first.

> [tab] By hand
>
> Right-click any column header and choose **Sort ascending** or **Sort descending**. A check marks the current choice.

The Dimension's items reorder by their values in that column, and they keep that order as values change and new items arrive. Any column works: a Variable such as Revenue, a field such as Start date, one month of a table segmented by Date, or a comparison column such as a scenario's delta.

Each level sorts inside its parent. On a table that lists Regions with Customers under each, sorting by Revenue orders the Regions by their totals and the Customers within each Region by their own values. A row that has no value or shows an error goes last either way. Choose **Clear column sort** on the same header to return to the item order, or pick **Ascending**, **Descending**, or **Manual** under **Sort** to order the items by name again.

The sort stays saved with the table when you add a comparison, a spacer, or another level. If the sort column leaves the table, the rows show their item order and the Dimension's **Sort** reads **Column sort inactive** until the column comes back. The full rules are in [Column sort](https://docs.cfo.ai/reference/table-blocks.md#column-sort).

Variable rows have no sort; drag them into the order you want. Date columns always run in date order; to show fewer periods, change the table's date range.

## If Filter items or Sort is missing

The menu leaves out actions that cannot apply. Check which case you are in:

> [accordion] The table is read-only for you
>
> Ask a page owner for edit access.

> [accordion] The Dimension is Date
>
> The Date axis cannot be filtered or sorted. Change the date range instead; see [Build a Table block by hand](https://docs.cfo.ai/guides/build-a-table.md#set-the-dates-and-the-time-grain). A column that holds dates, such as First ARR Month, can still order the rows; see [Sort rows by a column's values](#sort-rows-by-a-columns-values).

> [accordion] The row is a Variable
>
> Variables cannot be filtered or sorted. Hide or drag them instead; see [Format and arrange a table](https://docs.cfo.ai/guides/format-a-table.md).

> [accordion] The Dimension is a column that shows each row's item
>
> That is a mapping. Use **Filter** on its column header, as described above, or change it with **Use as**.

> [accordion] The breakdown belongs to one item only
>
> A breakdown added with **Segment by** on a single item is not a level of the whole table, so it has no filter or sort.

> [accordion] There is no label row to right-click
>
> The table hides its label rows. Right-click an item and use **\[Department] dimension settings**, or turn on **Show dimension headers** in the table's **…** menu, **Table block settings**.

## Related

* [Break a number down](https://docs.cfo.ai/guides/break-down-a-number.md)
* [Format and arrange a table](https://docs.cfo.ai/guides/format-a-table.md)
* [Table block controls and messages](https://docs.cfo.ai/reference/table-blocks.md#dimension-menu)


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