If there are numerous records in a table, working with the entire list can be cumbersome. You can narrow your view to just those records that match specific criteria by using the Custom Filter.
Using Travel Expenses as an example, you might want to know what records exceed a certain amount of money, say, $15.00. You may also want to know which records were after a certain date. On top of this, you only want to see lunch records. The records that do not meet this criteria will not be displayed and will be filtered out.
The set of conditions is called a "filter." A filter can have up to three conditions. Each condition consists of a column name, a value, and a comparison operator that specifies how the record’s value in the column must compare to the specified value in order for the record to be included in the list. You can specify that a record must match at least one of the conditions, or all of them.
For this example, let’s say we want to see all the records that meet the following conditions:
Over $15.00
Created after 11/6/2009
The Category Type is Lunch
To do this, we will be using all three conditions. First we will select Option|Custom Filter. The Define Filter dialog box will appear:
You will note there are three dropdowns.This means you can have up to three conditions a record will have to meet before it will be displayed.
If you had previously applied a filter, the application you are using will display those conditions. For our example, we need to remove them and begin with a clean slate as depicted by the image on the left. This is normally not necessary, but to assist you better in using the filtering, let’s clear the conditions first.
To do this, select the first dropdown arrow and look for an empty line. You will note that if a comparator or value is displayed, it will disappear.
Select the second dropdown arrow and look for an empty line. You will note that if a comparator or value is displayed, it will disappear.
Select the third dropdown arrow The third dropdown arrow and look for an empty line. You will note that if a comparator or value is displayed, it will disappear.
You are now ready to begin filtering…
Select the drop-down arrow for the first field in the dialog box, and select the column that contains the data you want to compare. For this example, select Date.
In the field that appears to the right of the column dropdown, select a comparison operator. For this example, select > , or the greater than symbol.
In the value field, enter the comparison value. For this example, enter 11/6/2009.
Note: all comparison operators are available for every type of column.
At this point, if we were to select ok, all records with a date after 11/6/2009 will be displayed.
Let’s enter the next part of the filter.
Select the second dropdown arrow, select the column Billed.
Select the comparison >.
Select the value 15.00.
At this point, if we were to select ok, all records with a date after 11/6/2009 and whose records contained a billed amount over $15.00 will be displayed.
Let’s enter the next part of the filter.
Select the third dropdown arrow, select the column category. Select the comparison = .
Select the value Lunch.
You will also note that at the bottom of the Define Filter box are radio buttons:
Match all: Displays all records that match the parameters provided; after 11/6/2009 AND more than $15.00 AND Lunch.
Match at least one: Displays all records that match at least one of the conditions; either after 11/6/2009 OR more than $15.00 OR Lunch.
Select ok. A filtered list will appear displaying ONLY the records that meet the criteria provided:
Out of ALL the records, ONLY records whose entry date was after 6/11/2009 are filtered.
Out of these filtered records, ONLY those records that exceed $15.00 are filtered.
Out of these filtered records, ONLY those records that are Lunch are filtered.
You can see how versatile and helpful custom filtering can be. Custom filtering is available on all grumpydragonsoft applications.