Está en la página 1de 11

Page |1

Create deck to display product line data. The first deck is a static deck and will not be driven by any data. It will contain a list that displays Product line and other data. Users will be able to drill down on product line. 1. From the Toolbox tab, drag a Table to the work area with 3 columns and 1 row. 2. Drag a Deck to the first table cell.

3. Drag a Table to the deck and accept the default settings. 4. Drag a Text Item to the left table cell, type the text Context: and
set the font to 11 pt. 5. Select the Table in the deck, and then from the Properties pane, under Positioning, double-click Size & Overflow and then set Height to 60px and delete the width. 6. Drag a List to the right of the table in the deck. You may want to select the deck to ensure the list was placed inside the deck. 7. Rename query1 to List_Query and then return to Page1.

8. From the Source tab, add the following query items to the list: Products Product line Sales fact Revenue, Planned revenue 9. Beside the list, click Interactive Behavior. 10. Click Manage Active Report Variables , and create a new active
report variable called vProductLine. 11. Click OK.

12. Under Behavior on Select, beside Set Variable Values, click


Edit. 13. From the Value list select Product line, and then click OK twice.

14. Beside the deck, click Interactive Behavior. 15. Under Reaction Behavior, beside Container Select , click Edit.
When vProductLine is empty, such as when the report is just run, the Product line list is shown. 16. Under Item, select Empty Variable, and then click OK three times.

Page |2

17. Click Deck Cards Definition, type Starting List as the first card
label, and then delete remaining cards. 18. Click OK.

19. Select the deck, and then from the Properties pane, under
Conditional, set Default Card to Yes.

20. Click the Deck tab

to see the contents of the default card. The results appear as follows:

21. Run the report. The results appear as follows:

You can use the debug feature to show the variable for vProductLine, as you click the different product lines in the list. 22. Close the browser.

Page |3

Create data deck to display product type data. 1. Drag a Data Deck to the middle table cell.

2. Drag a Table to the deck and accept the default settings. 3. Drag a Text Item to the left table cell, type the text Context: and
set the font to 11 pt. 4. Select the Table in the deck, and then from the Properties pane, under Positioning, double-click Size & Overflow and then set Height to 60px and delete the width. 5. Drag a List to the right table cell.

6. Drag another List below the table, within the deck.


7. You may want to select the data deck to ensure the list was placed inside the data deck. Rename queries as follows:

Query1 to PT_DataDeck_Query Query2 to PT_ContextVar_Query Query3 to PT_List_Query 8. In Query Explorer, click PT_ContextVar_Query . 9. From the Toolbox tab, drag a Data Item to the Data Items pane. 10. Type 'Drill Context' in the Expression Definition pane, and then
click OK. 11. Rename Data Item1 as Drill Context Item, and then return to Page1. 12. Click the top list in the right table cell, and then from the Data Items tab, under PT_ContextVar_Query, drag Drill Context Item to the list. 13. From the Toolbox tab, drag a Variable Text Item to the list in the table. The product line variable will be displayed as the context for the list below.

Page |4

14. Select Variable Text Item column title, and then from the
Properties pane, under Box, set Box Type to None. 15. Select <%vProductLine%> column, and then from the Properties pane, under Font & Text, set Font to Bold 11 pt. 16. Right-click Drill Context Item column, click Column Visibility, select Hidden, and then click OK. Only the vProductLine value will display from this list. 17. From the Source tab, add the following query items to the bottom list:

Products Product type Sales fact Revenue, Planned revenue 18. Drag Products Product line to the Deck/Values section
. Define interactive behavior on product type data deck. Set the product type list interaction to show the product type that is selected. 1. Beside the product type list, click Interactive Behavior.

2. Click Manage Active Report Variables , and create a new active 3. 4.


report variable called vProductType . Under Behavior on Select, beside Set Variable Values, click Edit. For vProductType , from the Value list select Product type, and then click OK twice. Set the context list interaction to set Product line to empty when a user clicks on the text to drill up. Beside the context list in the right table cell, click Interactive Behavior. Under Behavior on Select, beside Set Variable Values, click Edit.

5. 6.

Page |5

7. Beside vProductLine , from the Value list select Set to Empty and
then click OK twice. Set the data deck interaction to show the selected Product line and set Product type to empty. 8. Beside the data deck list, click Interactive Behavior.

9. Under Reaction Behavior, beside Container Select , click Edit. 10. Ensure the defaults are Product line in vProductLine, and then
clear the Drop this condition if the variable is empty check box. This condition is saying that if vProductLine is populated, then show the product type list. Otherwise, if it is empty, show the product line list.

11. Click OK, and then click New Condition . 12. Under Item, select Empty Variable, and then on the right, under
Item select Active Report Variable as vProductType . 13. Click OK. The results appear as follows: Product line in vProductLine AND vProductType is empty 14. Click OK twice.

15. Select the data deck, and then from the Properties pane, under
Conditional, set Default Card to Yes.

Page |6

16. Click the Data Deck tab


The results appear as follows:

to see the contents of the default card.

Page |7

Create a master detail relationship in the data deck. 1. Select the Product type list at the bottom of the data deck.

2. From the toolbar, click Filters, and then create a new filter as follows:
[Sales (query)].[Products].[Product line]=?PL? 3. Ensure the top list is selected, and then click Data, Master Detail Relationships. 4. Click New Link, create a link between Product line and PL, and then click OK. The master detail relationship will filter the card to show only the product types that belong to the product line selected. 5. Run the report and select a product line on which to drill down. 6. Click the product line that is displayed above the table to drill up. 7. Close the browser. Create data deck to display product name data. 1. From the Toolbox tab, drag a Data Deck to the third table cell.

2. Drag a Table to the deck with 4 columns and 1 row. 3. Select the Table, and then from the Properties pane, under
Positioning, double-click Size & Overflow, and then set Height to 60px and delete the width. 4. Drag a Text Item to the first column table cell, type the text Context: and set the font to 11 pt. 5. Drag a Text Item to the third column table cell, type >> and set the font to 11 pt.

Page |8

6. Drag a List to the second column table cell. 7. Drag a second List to the fourth column table cell. 8. Drag a third List to the right of table.
9. Rename queries as follows:

Query4 to Prod_List_Query 10. Click Prod_PLContextVar_Query , and follow the steps from Task 2, steps 9-16 to create the list as shown below:

Query1 to Prod_DataDeck_Query Query2 to Prod_PLContextVar_Query Query3 to Prod_PTContextVar_Query

11. In Query Explorer, click Prod_PTContextVar_Query , and follow


the steps from Task 2, steps 9-16 to create the list as shown below:

Page |9

12. From the Source tab, add the following query items to the bottom
list:

Products Product Sales fact Revenue, Planned revenue 13. Drag Products Product type to the Deck/Values section.
Define interactive behavior on product data deck. Set the product type list interaction to show the product type that is selected. 1. Beside the product line context list, click Interactive Behavior.

2. Under Behavior on Select, beside Set Variable Values, click


Edit. 3. Beside vProductLine , from the Value list select Set to Empty .

4. 5. 6. 7.

Beside vProductType , from the Value list select Set to Empty . Click OK twice. Beside the product type context list, click Interactive Behavior.

Under Behavior on Select, beside Set Variable Values, click Edit. 8. Beside vProductType , from the Value list select Set to Empty .

9. Click OK twice. 10. Beside the product data deck, click Interactive Behavior. 11. Under Reaction Behavior, beside Container Select , click Edit. 12. Specify the condition of Product type in vProductType , and then
clear the Drop this condition if the variable is empty check box. 13. Click OK three times.

14. Select the product data deck, and then from the Properties pane,
under Conditional, set Default Card to Yes.

P a g e | 10

15. Click the Data Deck tab


The results appear as follows:

to see the contents of the default card.

Note that the data deck value of Product type is not shown in the image above. Create a master detail relationship in the data deck. 1. Select the Product list at the bottom of the data deck.

2. From the toolbar, click Filters, and then create a new filter as follows:
[Sales (query)].[Products].[Product type]=?PT? 3. Ensure the list is selected, and then click Data, Master Detail Relationships.

P a g e | 11

4. Click New Link, create a link between Product type and PT, and
then click OK. The master detail relationship will filter the card to show only the products that belong to the product type selected. 5. Run the report and select Outdoor Protection product line and Sunscreen product type on which to drill down. The results appear as follows:

6. Click Sunscreen , and then Outdoor Protection to drill up.


7. Close the browser.

También podría gustarte