Filtering ad hoc reports
Several filtering options are available for you to customize the data that you see in an ad hoc report:
You can define simple or advanced filters using one or several columns
You can filter a data grid according to several values of a single criterion (column)
Whichever filter you apply to a report, your preference is retained for the grid.
In this article you'll find information about:
Available filter operators in ad hoc reports
When working in an ad hoc report, you can add filters and use different operators to sort its content. The available operators vary depending on the type of fields configured in the report.
An operator is an inclusive or exclusive condition (text or mathematical symbol) allowing to precisely target the filtering process.
The following table details the data types with the operators available for them:
| Data Type | Operator | Description |
|---|---|---|
| String | contains | Returns the records containing the entered character string in the selected criterion. |
| does not contain | Returns the records not containing the entered character string in the selected criterion. | |
| is equal to | Returns the records containing the exact entered word or letter in the chosen criterion. | |
| is not equal to | Returns the records except the ones containing the exact entered character string in the selected criterion. | |
| starting with | Returns the records starting with the entered character string in the selected criterion. | |
| not starting with | Returns the records not starting with the entered character string in the selected criterion. | |
| ending with | Returns the records ending with the specified character string in the selected criterion. | |
| not ending with | Returns the records not ending with the specified character string in the selected criterion. | |
| in | This operator enables you to filter the grid according to several values of the same criterion. The values need to be entered exactly as they are in the grid and separated by a comma (,). When the "in" operator is used, the search will return all the records containing the entered values. | |
| not in | This operator enables you to filter the grid according to several values of the same criterion. The values need to be entered exactly as they are in the grid and separated by a comma (,). When the "not in" operator is used, the search will return all the records not containing the entered values. | |
| is empty | Returns the records not containing character string value in the selected criterion. | |
| is not empty | Returns the records containing at least one character string value in the selected criterion. | |
| Number | = | Returns the records containing the specified number value in the selected criterion. |
| ≠ | Returns the records except the ones containing the entered number value in the selected criterion. | |
| < | Returns the records with values smaller than the entered value in the selected criterion. | |
| > | Returns the records with values greater than the entered value in the selected criterion. | |
| ≤ | Returns the records with values smaller or equal to the entered value in the selected criterion. | |
| ≥ | Returns the records with values greater or equal to the entered value in the selected criterion. | |
| Boolean | is checked | Returns the records for which the value is checked in the selected criterion. |
| is not checked | Returns the records for which the value is not checked in the selected criterion. | |
|
Date Datetime Time |
on or after | Returns the records for which the date is on or after the one entered in the selected criterion. |
| on or before | Returns the records for which the date is on or before the one entered in the selected criterion. | |
| after | Returns the records for which the date is after the one entered in the selected criterion. | |
| before | Returns the records for which the date is before the one entered in the selected criterion. | |
| is equal to | Returns the records for which the date is the same as the one entered in the selected criterion. | |
| is not equal to | Returns the records except the ones including the date entered in the selected criterion. | |
| is empty | Returns the records that do not contain any value for the selected criterion. | |
| is not empty | Returns the records containing at least one value in the selected criterion. | |
| selection | Returns the records containing the selected dates among the values of the drop-down list. |
Filtering an ad hoc report according to one or several criteria
The ad hoc report offers a filtering feature that enables you to filter the grid according to the value of one or several columns (criteria). You can use numeric, string, date and list columns define a filter.
To define a filter on an ad hoc report, proceed as follows:
Open the report with which you want to work (see Viewing an ad hoc report).
Click the Filter button above the report. The filtering tool is opened, as illustrated in the following figure:
Filter tool
In the first drop-down list, on the left, select the column on which you want to apply the filter.
In the second drop-down list, in the middle, select the operator that you want to use for the filter. Please note that the list of available operators depends on the type of column (date, text, number, etc.).
In the third field, enter or select the value that you want to apply to the filter.
Click Apply. The filter is applied to the grid and an indicator badge is applied in the grid toolbar, as illustrated in the following figure:
Filter badge
You can add as many filters as you want by clicking the Add Filter button and repeating the procedure above. However, please keep in mind that the "AND" operator is applied by default. In other words, when the filters are applied, the grid will display only the records that match all of the defined filters. Defined filters are retained for the grid when you exit the screen.
Filtering an ad hoc report according to multiple values
The v10 application offers two possibilities to filter an ad hoc report according to multiple values of a single column (criterion):
Filtering using the "in" and "not in" operators (string-type fields only; see Filtering an ad hoc report according to several values of a single criterion ("in"/"not in"))
Filtering using the multiple value filtering (see Filtering an ad hoc report using multiple value filtering)
Filtering an ad hoc report according to several values of a single criterion ("in"/"not in")
You can filter the data of an ad hoc report according to several values of a single criterion using the filter tool of the report.
To define multiple values for a filter criterion, proceed as follows:
Click Filter to open the filter tool of the report (see Filtering an ad hoc report according to one or several criteria).
In the first drop-down list, select the criterion (column) according top which you want to filter the report.
In the second drop-down list, select one of the following operators: "in" (only entered values will be included in the result) or "not in" (entered values will be excluded from the result).
In the value field (third field), enter the exact values, separated by a comma, as illustrated in the following figure:
Defining multiple values for a criterion
If required, add additional criteria. You can use multiple values in several criteria simultaneously.
Click Apply. The grid is filtered according to the filter definition and an indicator badge is displayed next to the Filter button in the report toolbar.
Filtering an ad hoc report using multiple value filtering
You can filter an ad hoc report according to several values of the same criterion by using several filtering conditions in the filter tool.
To do so, proceed as follows:
Open the report in which you want to work and then click Filter in the grid toolbar. The filter tool opens.
In the first drop-down list, on the left, select the column on which you want to apply the filter.
In the second drop-down list, in the middle, select the operator that you want to use for the filter. Please note that the list of available operators depends on the type of column (date, text, number, etc.).
In the third field, enter or select the value that you want to apply to the filter.
Click Add Filter.
Select the same column in the first drop down, and then repeat steps 3 and 4.
Click Apply. Both filter conditions are applied to the report.
Removing individual filters from an ad hoc report
To remove individual filters from an ad hoc report, proceed as follows:
Click Filter in the report toolbar. The filter tool is opened.
In the list of defined filters, locate the filter that you want to remove.
Click the " X " icon at the right of the filter, as illustrated in the following figure:
Individual filter removal
Click Apply in the lower-right corner of the filter tool. The tool is closed and the filter is removed.
Removing all filters from an ad hoc report
To remove all filters from an ad hoc report, proceed as follows:
In the report toolbar, click the " X " icon located at the right of the filter indicator badge, as illustrated in the following figure:
Complete filter removal