Lesson 2: Adding a Parameter (Report Builder 1.0)
In this lesson, you will add a parameter that prompts the report reader to select a sales territory and a second parameter that prompts report readers to select a sales order year. For the sales order year, you will specify the year "2003" as the default.
To specify a prompt
With the report design displayed in the Report Builder window, on the Report menu, click Filter.
The Filter Data dialog box opens.
In the Entities list, select Territory.
Note
There are two Territory entities listed: one is the role from the Sales Person entity and the second is the role from the Sales Orders entity. For the purpose of this tutorial, you want to select the Territory entity that is a role from the Sales Person entity. The Territory role is indented in the list below the Sales Person entity.
In the Fields list, double-click Group.
A filter clause is added in the filter area.
In the filter clause, click Group and select Prompt.
Click equals and then select in a list.
By changing the comparison operator, your report readers can select one or more territories from a list.
To specify a default parameter value
In the Entities list, select Sales Order.
In the Fields list, expand the Order Date field and then double-click #Order Year.
In the filter clause, right-click Order Year and select Prompt.
In the Order Year drop-down list, select 2003.
The filter clauses should appear similar to the following image.
To exit the Filter Data dialog box, click OK.
Next Steps
You have successfully added two parameters to your report. In the next lesson, you will run the report and specify values for the parameters. See Lesson 3: Running a Report with Parameters (Report Builder 1.0).