What's new ⬇ Download Reportworq
⬇ Guide PDF

Field filtering#

Early release. This feature is in early release, so its screens and behavior may change. Tell us what you think with Send feedback. See Early release features and Send feedback.

A field filter is one or more conditions on a field of a view. Every row the view returns, in Preview, in the Excel add-in, in a web report and in a distribution job, has to pass them. You set the condition once on the model and every report that uses the view gets the narrowed rows without repeating it.

When to use it. Use a field filter to keep a view to the rows people should always report on. At Timberline Harvest Co., the Sales Details view holds every invoice line since 2022. A filter on year of >= 2025 keeps a view to the current years, and a filter on paid_status of = Open makes a view of unpaid invoices for collections reports. To let each report choose the value, put a {{variable}} in the filter instead of a fixed value.

Before you start#

Filter a field#

  1. Open the data model, select the view in the rail, and select its Fields tab.
  2. On the field's row, select the filter button. Its tooltip reads Filter this field. The Filter panel opens at the side, titled with the field's name, with a Conditions section.
  3. Select Add condition.
  4. Choose the operator from the list on the left, and type the value on the right. The box shows the hint Value or {{Variable}}. Operators such as Is Null show no value needed.
  5. To add more conditions on the same field, select Add condition again. Once there are two or more, a Match control appears with all and any: all keeps a row only if it passes every condition, any keeps it if it passes at least one.
  6. To remove a condition, select the x beside it (Remove condition).
  7. Close the panel and select Save Changes. Check the result on the view's Preview tab.
The field filter panel opened from the Fields tab of the Sales Details view, titled Filter · year. Under Conditions, one condition reads the greater-than-or-equal operator with the value 2025, and the Add condition button sits below it.
The field filter panel opened from the Fields tab of the Sales Details view, titled Filter · year. Under Conditions, one condition reads the greater-than-or-equal operator with the value 2025, and the Add condition button sits below it.Tap or click the image to view it full screen

A field that has conditions shows a filled filter icon, and its tooltip reads 1 filter condition(s). Edit. A condition that needs a value but has none is dropped when you close the panel, so a half-finished condition never narrows anything.

Value rules#

Operators#

Operator Keeps a row when the field... Needs a value
= equals the value Yes
<> differs from the value Yes
<, <=, >, >= is less than, at most, greater than, or at least the value Yes
Starts With, Ends With starts or ends with the text Yes
Contains contains the text Yes
Does Not Contain does not contain the text Yes
Is Contained In is one of a list of values Yes, a list
Is Null, Is Not Null has no value, or has a value No
Is Empty, Is Not Empty is an empty text, or is not No
Is Null Or Empty, Is Not Null Or Empty is missing or empty, or is not No

The list shows every operator for every type of field. On a number, date or true/false field a value is never empty, so Is Empty keeps nothing and Is Not Null Or Empty is the same as Is Not Null.

How filters combine#

Where filters run#

A filter runs in the source's own query wherever the source can express it, so the database returns only the matching rows and less data crosses the network. There is nothing to switch on.

When the same filter returns different rows#

Because the database does the filtering, a few comparisons follow the database's rules and not Reportworq's:

Difference What to expect
Case and text order Whether maine matches Maine, and how text sorts, follow the database's collation. If a filter returns different rows than you expect, check how the source compares text.
Trailing spaces SQL Server treats text with trailing spaces as equal.
% and _ in Contains or Starts With They act as wildcards at a SQL source. In memory they are plain characters.
Is Contained In At a SQL source it matches whole values from the list. In memory it matches pieces of the text. The source is the one to trust.
Access over ODBC Text empty conditions fall back to the capped in-memory read.

Notes and limits#

Going deeper. For defaults, prompts and how a variable's value is written into the query, see Data model variables. For the Fields tab in full (renaming, hiding and reordering), see Data models.

Feedback on this page

Comments, questions, requests, or something missing or unclear? Email us - the page you are on is filled in for you.

Email feedback on this page

Or write to support@reportworq.com directly.