To create a section
filter for a date, time, or timestamp category in a relational data
source, complete these steps:
-
At the top of the
Section
Data panel, click
OptionsSection Filters. This opens
the
Section Filters dialog box. Click
New to
open the
Create Custom Filter dialog box.
-
In the
Filter
name field, accept the default name or provide a different
name. For example, if you want to filter the query to return data
before a specified time, type a name such as
Data
Entered Before 5:00 pm
. The filter name appears
in the
Apply custom filters box in the
Edit
Filters dialog box.
-
From the
Data
item drop-down list, select the date, time, or timestamp
data item that you want to filter.
-
From the
Operator drop-down
list, specify how you want to filter the values from the data source.
For example, you might want users to see query results that are before
or equal to the filter values.
-
If you selected
Is
missing or
Is not missing, then
you have created the filter. For all other operators, see the following
table.
Operators, Category Types, and Required Information
|
|
|
Is equal
to, Is not equal to, Is
after, Is after or equal to, Is
before, and Is before or equal to
|
|
Use the Date field
to type a date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
|
|
Use the Time drop-down
lists to select an hour, a minute, and a second in 24-hour time. For
example, to specify 5 p.m., select 17, 00,
and 00.
|
|
Use the Date field
to type a date or click to use the date picker.
Use the Time drop-down
lists to select an hour, a minute, and a second in 24-hour clock time.
|
Is between
values (inclusive) and Is not between values
(inclusive)
|
|
Use the Minimum and Maximum drop-down
lists to specify the minimum and maximum dates. Use the Date fields
to type a minimum and maximum date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
|
|
Use the Minimum and Maximum drop-down
lists to select a minimum and maximum hour, minute, and second in
24-hour clock time.
|
|
Use the Minimum and Maximum drop-down
lists to specify the minimum and maximum dates and times. Use the Date fields
to type a date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
Use the Time drop-down
lists to select the hours, minutes, and seconds in 24-hour clock time.
|
-
-
When you access the
Create
Custom Filter dialog box from the
Section
Filters dialog box, the filter that you just created
is automatically selected in the
Apply custom filters box.
When the filter name is selected, the filter expression is shown in
the
Expression box.
Tip
Custom filters can be saved
for future use. To turn off the filter, clear the check box next to
the filter name.
For
more information, see Apply Existing Section Filters.
To save the new section
filter and exit the
Section Filters dialog
box, click
OK.
Note: If you click
Cancel,
your new section filter is discarded.
Section Filters Dialog Box Showing a New, Selected Custom Date
Filter and Its Expression
New section filters
are automatically added to the existing filter combination expression.
By default, new section filters are joined using the AND operator,
which means that the query results must match all selected section
filters.
For more information,
see Combine Section Filters.