Filters

With the Filters, you can make PocketQuery result tables easier to explore directly on a Confluence page. Instead of exporting a large table or scrolling through every row, your users can filter the displayed result right where the PocketQuery macro is rendered.

Good to know: Result filters work with query results that are rendered as an HTML table. If the macro result is not a table, PocketQuery will continue to show the result without the filter bar.

Screenshot of PocketQuery result table with filters

Where to find filters

You configure result filters in the Filters tab of the PocketQuery macro settings. Each PocketQuery macro can have its own filter setup, so you can show the same Query differently on different Confluence pages.

Screenshot of PocketQuery Macro settings with Filters tab

How to add filters in the macro settings

Follow these steps to add filters to a PocketQuery macro:

  1. In the macro settings, select the Query you want the macro to execute. If your Query uses parameters, enter the parameter values first so PocketQuery can load the table columns.

  2. Open the Filters tab.

  3. Enable Table filters.

  4. Click Load columns to load the header of the table.

  5. Choose a Filter type.

  6. For column-based filters, choose the Column the filter should use.

  7. If the selected filter type needs an Operator, choose the operator you want to use.

  8. Configure the remaining settings, such as Case sensitive or N (number of rows).

  9. Click Add filter.

  10. Repeat these steps if you want to add more filters.

  11. Click Save to save the macro settings, then publish or update the Confluence page.

Screenshot of PocketQuery macro settings with active Filters tab

Available filter types

The categories are as follows:

Filter type

What it does

Settings

Dropdown

Lets users pick one or more values from a column. Only rows with matching values remain visible.

Column

Freetext

Lets users enter text and compare it with the selected column.

Column, Operator, Case sensitive

Number

Filters a column by numeric values.

Column, Operator, number value, or range values for between

Date

Filters a column by date values.

Column, Operator, date value, or date range for between

Hide Column

Hides the selected column from the displayed table. This does not remove rows.

Column

Whole Table

Adds one search field that searches across all visible table columns.

Case sensitive

Is Empty

Shows only rows where the selected column is empty.

Column

Is Not Empty

Shows only rows where the selected column contains a value.

Column

Top N Rows

Limits the result to a fixed number of rows, for example the first 10 rows.

N (number of rows)

Freetext filters

Use a Freetext filter when users should type a search value themselves. The following operators are available:

  • contains: Shows rows where the column contains the entered text.

  • not contains: Shows rows where the column does not contain the entered text.

  • =: Shows rows where the column exactly matches the entered text.

  • : Shows rows where the column does not exactly match the entered text.

  • starts with: Shows rows where the column starts with the entered text.

  • ends with: Shows rows where the column ends with the entered text.

  • regex: Shows rows where the column matches the entered regular expression.

Enable Case sensitive if uppercase and lowercase letters should be treated as different values.

Number and date filters

Number and Date filters use the same comparison operators:

  • =: Equal to the configured value.

  • : Not equal to the configured value.

  • >: Greater than the configured value.

  • : Greater than or equal to the configured value.

  • <: Less than the configured value.

  • : Less than or equal to the configured value.

  • between: Inside the configured range.

Use between when you want users to filter a range, for example all rows between two dates or all numbers between two amounts.

Use a Dropdown filter when the selected column has a known set of values, such as status names, categories, countries, or users. PocketQuery reads the values from the result table and lets users select the values they want to keep visible.

Use Whole Table when users should search the complete result table with a single input. This is useful for broad searches where users may not know which column contains the value they are looking for.

Whole Table is a global filter. It does not require a column selection.

Hide columns

Use Hide Column when a Query returns columns that are useful for filtering or context, but should not be displayed to page viewers. The data remains part of the rendered table configuration, but the selected column is hidden from the visible result.

Empty and filled values

Use Is Empty to show only rows where a column has no value. Use Is Not Empty to show only rows where a column contains a value.

These filters are useful for quickly finding incomplete data, optional fields, or rows that still need attention.

Top N rows

Use Top N Rows when you only want to show a limited number of rows from the table. Enter the number of rows in N (number of rows).

This is useful for overview pages where users only need a short list, such as the first 5 or 10 entries.

Sorting and resetting filters

When table filters are enabled, users can also sort the result table by clicking the table headers. Sorting works together with the active filters.

Users can click Reset filters to clear the values they entered in the filter bar and return to the configured default filter state.

How multiple filters work together

If you add several filters, PocketQuery applies them together. A row must match all active filters to remain visible. This makes it possible to combine filters, for example:

  • A Whole Table search for a customer name.

  • A Dropdown filter for the status column.

  • A Date filter for the current month.

  • A Hide Column filter for an internal ID column.