To create
a prompted filter for a date, time, or timestamp in a relational data
source, complete these steps:
-
At the
top of the
Section Data pane, click
OptionsSection Filters or select
DataSection 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 are creating a prompted filter
that will enable users to select a date range, type a name such as
Prompted Beginning and Ending Date
. The filter
name appears in the
Apply custom filters box
in the
Section Filters dialog box.
-
From the
Data item drop-down list, select the date data item
that you want to filter.
-
From the
Operator drop-down list, specify how the prompt values
should be used to filter the values from the data source. For example,
you might specify that you want users to see query results that are
between the entered prompt values.
-
Select
the
Prompt user to enter values check box.
-
In the
Prompt text field, type instructions for using the prompt.
For example, you might type
Display data for employees
who were hired after your selected date
. There
is no limit to the number of characters that you can type. The prompt
text appears in the prompt window.
-
In the
Prompt name field, accept the default name or type a
new name for the prompt. The prompt name appears in the prompt window
and in the
Report Linking dialog box.
-
Depending
on which operator you selected, enter the required information.
|
|
Equal
to, Not equal to, After, After or equal to, Before, and Before or equal to
|
In the Date field, type a date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
|
Between
values and Not between values
|
In the Date fields, type a minimum date and a maximum date
or click next to each field to use the date picker. Note that
the list of valid formats depends on your locale and language.
|
-
-
When you
access the
Create Custom Filter dialog box
from the
Section Filter dialog box, then
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 filter and exit the
Section Filters dialog box, click
OK.
Note: If you click
Cancel, your new filter is discarded.
-
(Optional)
New filters are automatically added to the existing filter combination
expression. By default, new filters are joined using the AND operator,
which means that the query results must match all selected filters.
For more information,
see Combine Filters.
Section Filters Dialog Box Showing a New, Prompted, Selected
Custom Date Filter and Its Expression