Table of Contents |
guest 2025-07-10 |
In some cases, the filter popup will have two tabs. If there is a Choose Values tab, you can directly select one or more individual values using checkboxes. Click on a label to select only a single value, add or remove additional values by clicking on checkboxes.
Filtering expressions available in dropdowns vary by datatype and context. Possible filters include, but are not limited to:
You may add a second filter if desired - the second filter is applied as an AND with the first. Both conditions must be true for a row to be included in the filtered results.
Once you have filtered on a column, the filter icon () appears next to the columns title. Current filters are listed above the view; hover to reveal action buttons.
Notes:
Some filters on some types of data are persistent (or "sticky") and will remain applied on subsequent views of the same data. For example, some types of assays have persistent filters for convenience; these are listed in the active filter bar above the grid.
If a column contains 100 or fewer distinct values, then a pick list of faceted filters is provided in the filter dialog on the Choose Values tab (Provided that the column type is one of the following: Lookup, Boolean, Integer, Text, DateTime, or if the column is marked as a dimension). In the image below, the Language column has eight options; French is shown selected.
When applying multiple faceted filters to a data grid, the options shown as available in the panel will respect prior filters. For example, if you first filter the Demo Study demographics dataset by "Country" and select only "Uganda", then if you open a second filter on "Primary Language" you will see only "French" and "English" as options - our sample data includes no patients from Uganda who speak German or Spanish. The purpose is to simplify the process of filtering by presenting only valid filter choices. This also helps you unintentionally empty results.
To clear a filter from a single column, click on the column heading and select Remove Filter.
To clear all filters (and all sorts), click on the Clear All link that appears when you hover over the filter bar. Alternatively, click on any column heading and select Filter. In the filter dialog click the Clear All Filters button.
Filtering specifications are included on the page URL. The following URL filters the demo study "Physical Exam" dataset to show only rows where temperature is greater than 37. The column name, the filter operator, and the criterion value are all specified as URL parameters.
In general there is no need to edit the filter directly on the URL; using the filter box is easier and less error-prone.
The most recent filter on a grid is remembered, so that the user's last filter can be displayed. To specify that a grid should be displayed using the user's last filter settings, set the .lastFilter URL parameter to true, as shown:
https://www.labkey.org/Issues/home/Developer/issues/list.view?.lastFilter=true
Within a study dataset, you may also filter a data grid by participant group. Click the Filter button on the left above the grid to open the filter panel. Select checkboxes in this panel to further filter your data. Note that filters are cumulatively applied and listed in the active filter bar above the data grid.
Expression | Arguments | Description | |
---|---|---|---|
Has Any Value | Returns all values, including null | ||
Is Blank | Returns blank values | ||
Is Not Blank | Returns non-blank values | ||
Equals | 1 | Returns values matching the value provided | |
Does Not Equal | 1 | Returns non-matching values | |
Is Greater Than | 1 | Returns values greater than the provided value | |
Is Less Than | 1 | Returns values less than the provided value | |
Is Greater Than or Equal To | 1 | Returns values greater than or equal to the provided value | |
Is Less Than or Equal To | 1 | Returns values less than or equal to the provided value | |
Contains | 1 | Returns values containing a provided value | |
Does Not Contain | 1 | Returns values not containing the provided value | |
Starts With | 1 | Returns values which start with the provided value | |
Does Not Start With | 1 | Returns values which do not start with the provided value | |
Between, Inclusive | 2, comma separated | Example usage: -4,4 | Returns values between or matching two comma separated values provided |
Not Between, Exclusive | 2, comma separated | Example usage: -4,4 | Returns values which are not between and do not match two comma separated values provided |
Equals One Of | 1 or more, semi-colon separated | Example usage: a;b;c | Returns values matching any one of a semi-colon separated list |
Does Not Equal Any Of | 1 or more, semi-colon separated | Example usage: a;b;c | Returns values not matching a semi-colon separated list |
Contains One Of | 1 or more, semi-colon separated | Example usage: a;b;c | Returns values which contain any one of a semi-colon separated list |
Does Not Contain Any Of | 1 or more, semi-colon separated | Example usage: a;b;c | Returns values which do not contain any of a semi-colon separated list |
Expressions available for data of type boolean (true/false values):
Date and DateTime data can be filtered with the following expressions:
Expressions available for data of any numeric type, including integers and double-precision numbers:
String type data, including text and multi-line text data, can be filtered using the following expressions: