Está en la página 1de 14

Module 2 Workshop Part 1: Build a Basic Report

Purpose: Build an Active Report that leverages a broad range of basic functionality to reinforce key concepts Studio: Package: Report Type: Report Studio Go Sales (query) Blank Active Report

Task 1. Build the Layout of the Report The purpose of this section is to use Tables and Blocks to build the report layout for the Active Report. 1. From the Toolbox tab, drag a Block to the work area and set the following properties: Name: DropDownBlock Width: 975px Padding:

2.

Drag a Table onto the canvas below DropDownBlock - insert a Table with 3 columns and 1 row and set the following properties: Height: 400px Width: 975px Name: ControlTable Select the leftmost Table Cell of ControlTable and set: Height: 400px Width: 375px Horizontal Alignment: Center Vertical Alignment: Top Select the center Table Cell of ControlTable and set: Height: 400px Width: 400px Horizontal Alignment: Center Vertical Alignment: Top Select the rightmost Table Cell of ControlTable and set: Height: 400px Width: 200px Horizontal Alignment: Left Vertical Alignment: Top The layout of the report is shown below.

3.

4.

5.

6.

Task 2. Setup Year Filtering for the Chart The purpose of this section is to create the chart for retailer revenue and use Active Report controls so that the chart dynamically responds to changing the selected Year. 1. Drag a Data Drop-Down List into DropDownBlock and change the Name to YearDropDown From the Source tab insert the following item into the drop area for YearDropDown: [Sales (query)].[Time].[Year]

2.

3.

Using Query Explorer, navigate to Query1 and rename it ControlQuery

4. 5.

Navigate back to Page1 using the Page Explorer Right-click and drag a Data Deck to the leftmost Table Cell of ControlTable Insert using the existing query called ControlQuery and set: Height: 350px Width: 350px Slide Animation Direction: Top to Bottom Name: ChartDeck From the Data Items tab insert the following item from ControlQuery into the drop area for ChartDeck: [Sales (query)].[Time].[Year]

6.

7.

From the Toolbox tab, drag a Chart into ChartDeck and select Clustered Column with 3-D Effects set the following properties: Chart Title: Show Double-click on Legend and uncheck Show legend Width: 350px Height: 350px Name: RetailerChart Double-click on the Chart Title on the canvas and enter Revenue by Retailer select the Chart Title background area on the canvas and change the Font property to size 10 Click on the Primary Axis and change the Axis Title to Hide

8.

9.

10. Click on the Category Axis and change the Axis Title to Hide 11. Using Query Explorer, navigate to Query1 and rename it ObjectQuery 12. Navigate back to Page1 using the Page Explorer and from the Source tab insert the following items into the RetailerChart: [Sales (query)].[Sales].[Revenue] as the default measure [Sales (query)].[Retailer type].[Retailer type] as the category 13. Using Query Explorer, navigate to ObjectQuery 14. From the Source tab drag [Sales (query)].[Time].[Year] to the Detail Filters section and enter the expression: [Sales (query)].[Time].[Year] = ?pYear?
5

15. Navigate back to Page1 - right-click on RetailerChart and select Master Detail Relationships 16. Click the New Link button and connect Year to pYear - click OK 17. Click on the Primary Axis of RetailerChart double-click on the Axis Range property and uncheck the Same range for all instances of chart option

18. Click on the Create a New Connection icon beside YearDropDown, implement the following and then click Connect:

Source Control: YearDropDown Source Control Data Item: Year Behavior: Select Create a new variable: varYear Target Control: ChartDeck Target Control Data Item: Year

19. The layout of the report is shown below and when the report is run the user should be able to choose a Year from the dropdown menu and have the chart update and animate.

Task 3. Setup Year Filtering for the List The purpose of this section is to expand the functionality of the report to include the dynamic filtering of a list. 1. Right-click and drag a Data Deck to the center Table Cell of ControlTable Insert using the existing query called ControlQuery and set:
7

Width: 340px Name: ListDeck 2. From the Data Items tab insert the following item from ControlQuery into the drop area for ListDeck: [Sales (query)].[Time].[Year] Right-click and drag a List into ListDeck Insert using the existing query named ObjectQuery and set the following: Width: 340px Name: RetailerList From the Data Items tab insert the following item from ObjectQuery into RetailerList: [Sales (query)].[Retailer type].[Retailer type] From the Source tab insert the following items into RetailerList: [Sales (query)].[Sales].[Quantity] [Sales (query)].[Sales].[Gross profit] Select the Quantity List Column Title and do the following: Set the Width to 110px From the toolbar select the Summarize icon the Summarize in Output section select Total 7. and in

3.

4.

5.

6.

Select the Gross Profit List Column Title and do the following: Set the Width to 110px From the toolbar select the Summarize icon the Summarize in Output section select Total and in

8. 9.

Right-click on RetailerList and select Master Detail Relationships Click the New Link button and connect Year to pYear Click OK

10. Click on the Interactive Behavior icon beside ListDeck and double-click on the Container Select area create the following condition and then click OK three times: Data Item: Year Operator: in Active Report Variable: varYear 11. The layout of the report is shown below and when the report is run the user should be able to choose a Year from the dropdown menu and have both the chart and list update. Only the chart should animate when a selection is made.

Task 4. Setup the Region Filtering Functionality The purpose of this section is to allow the user to filter the chart and the list by both Region and Year.

1.

Right-click and drag a Data Radio Button Group to the rightmost Table Cell of ControlTable Insert using the existing query called ControlQuery and set: Orientation: Vertical Name: RegionButtons From the Source tab insert the following item into the drop area for RegionButtons: [Sales (query)].[Retailers].[Region]

2.

3.

From the Data Items tab insert the following item from ControlQuery into the drop area for ChartDeck: [Sales (query)].[Retailers].[Region]

10

4.

From the Data Items tab insert the following item from ControlQuery into the drop area for ListDeck: [Sales (query)].[Retailers].[Region] Using Query Explorer, navigate to ObjectQuery From the Source tab drag [Sales (query)].[Retailers].[Region] to the Detail Filters section and enter the expression: [Sales (query)].[Retailers].[Region] = ?pRegion? Navigate back to Page1 - right-click on RetailerChart and select Master Detail Relationships Click the New Link button and connect Region to pRegion click OK Right-click on RetailerList and select Master Detail Relationships
11

5. 6.

7.

8.

9.

10. Click the New Link button and connect Region to pRegion click OK 11. Click on the Create a New Connection icon beside RegionButtons, implement the following and then click Connect: Source Control: RegionButtons Source Control Data Item: Region Behavior: Filter Create a new variable: varRegion Target Control: ChartDeck Target Control Data Item: Region 12. Click on the Interactive Behavior icon beside ListDeck and double-click on the Container Filter area create the following condition and then click OK three times: Data Item: Region Operator: in Active Report Variable: varRegion 13. The layout of the report is shown below and when the report is run the user should be able to choose a Year from the dropdown menu or a Region from the radio button group and have both the chart and list update.

12

Task 5. Setup the Default Behavior The purpose of this section is to setup the desired behavior of the report when a user first opens it. 1. 2. Select ChartDeck and change the Default Card property to Yes Drag a Text Item onto the Default Card for ChartDeck and enter Choose a Year from the drop-down above Select ListDeck and change the Default Card property to Yes Click the Interactive Behavior icon beside RegionButtons and double-click on the Control Enable area create the following condition and then click OK: Item: Empty Variable Operator: in Active Report Variable: varYear At the bottom of the Control Enable dialog box, click NOT and then click OK twice

3. 4.

5.

13

6.

Select YearDropDown and change the No Value List Item property to Show enter Choose a Year as the Default text in the Label property field On the Active Report Variables tab right-click on varRegion and select Edit Variable click on Set Default Value and choose Americas click OK twice The layout of the report is shown below and when the report is run the user should be prompted to make a selection from the drop-down list and the Region buttons should be disabled. Once a Year selection is made, the objects should appear and the Region buttons become active.

7.

8.

9.

Save the report as Module 2 Workshop 1. The next workshop will begin using the saved report.

14

También podría gustarte