Skip Headers

Oracle9i Discoverer Administrator Tutorial
Version 9.0.2

Part Number A92180-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

10
Lesson 9: Working with hierarchies

Lesson 9: Working with hierarchies

It will probably take you about 20 minutes to complete this lesson.

In this lesson you will set up items in a hierarchy to enable end users to drill up and down the hierarchy to view related information.

Drilling between items in a hierarchy usually involves displaying a lesser or greater detail of aggregated information. For example, drilling through the sales figures of an entire company from a region level to a district level and finally to the level of a single store. Each level of the hierarchy reveals a greater detail of aggregated information. End users can perform either filtered or unfiltered drill downs. For example, end users might select either a specific data value for an axis item (e.g. the year 2000), or all data values for the axis item (e.g. all years) and then drill down.

As the Discoverer manager, you can provide end users with several methods of drilling into related information. In this section, you will enable the drill up/down capability.

This lesson consists of the following exercises:

Exercise 1: Defining a simple item hierarchy

In this exercise you will create a new hierarchy in the New Video Stores business area.

Some of the data in a business organization is hierarchical in nature. Store sales naturally fold into city sales, city sales fold into regional sales, and so on until the top of the hierarchy is reached.

You define a hierarchy to provide end users with an easy way of drilling into aggregated information without having to know exactly what items make up the hierarchy.

To create a new hierarchy:

  1. Display the Workarea: Hierarchies tab and click the New Video Stores business area.

Figure 10-1 Workarea: Hierarchies tab


Text description of hiertab.gif follows.
Text description of the illustration hiertab.gif

This enables you to work with hierarchies in the New Video Stores business area.

  1. Choose Insert | Hierarchy to display the Hierarchy Wizard dialog.

Figure 10-2 Hierarchy Wizard dialog


Text description of hwiz.gif follows.
Text description of the illustration hwiz.gif

  1. Select the Item Hierarchy radio button

    Note: An item hierarchy enables you to drill up and down through character and numeric items. A date hierarchy enables you to drill up and down through date items (e.g. Year, Quarter, Month, Week, Day).

  2. Click Next to display the Hierarchy Wizard: Step 2 dialog.

Figure 10-3 Hierarchy Wizard: Step 2


Text description of hwiz2un.gif follows.
Text description of the illustration hwiz2un.gif

The steps that follow enable you to choose the items that you want end users to see in their drill hierarchies. The position of each item in a hierarchy reflects how the drill is displayed in Discoverer Plus.

  1. Click the + symbol next to the Video Analysis complex folder to display the items.

Figure 10-4 Hierarchy Wizard: Step 2 dialog


Text description of hwiz2.gif follows.
Text description of the illustration hwiz2.gif

  1. Move the Video Analysis.Region item to the list on the right.

    To select more than one item at once, hold down Ctrl while you click on the items.

  2. Move the Video Analysis.City item to the list on the right.

  3. Move the Video Analysis.Store Name item to the list on the right.

  4. Click Next to display the Hierarchy Wizard: Step 3 dialog.

  5. Type Regional Hierarchy in the Hierarchy name field.

  6. Type Region-City-Store in the Hierarchy description field.

Figure 10-5 Hierarchy Wizard: Step 3 dialog


Text description of hwiz3.gif follows.
Text description of the illustration hwiz3.gif

  1. Click Finish to create the hierarchy.

  2. Display the Workarea: Hierarchies tab

    This now lists the new Regional Hierarchy in the New Video Stores business area.

  3. Click the + symbols in the Regional Hierarchy to display all of the levels of the new hierarchy you have just created.

Figure 10-6 Workarea: Hierarchies tab


Text description of hreg.gif follows.
Text description of the illustration hreg.gif

End users can now navigate through all the levels of the hierarchy, skipping levels if necessary.

In this exercise you created a new hierarchy in the New Video Stores business area.

What the Discoverer Plus user sees - navigating the hierarchy

The figure below shows the three levels of the hierarchy you just created (i.e. Region, City, and Store Name) in a Discoverer Plus worksheet.

Figure 10-7 Discoverer Plus Workbook - navigating through items in a hierarchy


Text description of usedhr.gif follows.
Text description of the illustration usedhr.gif

The Discoverer Plus user does not have to explicitly set up a hierarchy. When an item is selected for a workbook that is part of a hierarchy, the user can navigate to any other element in the hierarchy using a popup menu.

Exercise 2: Defining a more complex item hierarchy

In this exercise you will create a more complex item hierarchy where the end user can drill into product details.

To create a more complex item hierarchy in the New Video Stores business area:

  1. Display the Workarea: Hierarchies tab and click the New Video Stores business area.

  2. Choose Insert | Hierarchy to display the Hierarchy Wizard dialog.

  3. Select the Item Hierarchy radio button.

  4. Click Next to display the Hierarchy Wizard: Step 2 dialog.

  5. Click the + symbol next to the Product Information folder to display the items in the folder.

Figure 10-8 Hierarchy Wizard: Step 2 dialog


Text description of hwiz2p.gif follows.
Text description of the illustration hwiz2p.gif

  1. Move the following items (in the order they are listed) to the list on the right:

    • Product Information.Product Type

    • Product Information.Department

    • Product Information.Product Category

    • Product Information.Description

    • Product Information.Full Description

  2. Select the following two items from the hierarchy in the right window.

    You do this by selecting the first item, then hold down the Ctrl key and highlight the second item.

    Highlight both of the following items:

    • Product Information.Description

    • Product Information.Full Description

  3. Click the Group button to group the selected items so that they appear at the same level in the hierarchy.

    Grouping items in this way causes them to be drawn simultaneously into an end user query in Discoverer Plus. When you drill down from Product Category Discoverer will display Description and Full Description at the same level.

Figure 10-9 Hierarchy Wizard: Step 2 dialog


Text description of hwiz2g.gif follows.
Text description of the illustration hwiz2g.gif

  1. Click Next to display the Hierarchy Wizard: Step 3 dialog.

  2. Type Product Hierarchy in the Hierarchy name field.

  3. Leave the Description field blank.

  4. Click Finish to create the new hierarchy.

  5. Display the Workarea: Hierarchies tab.

  6. Click the + symbol next to the New Video Stores business area to display the hierarchies in the business area.

  7. Click the + symbol next to the Product Hierarchy that you just created to display the hierarchy items.

Figure 10-10 Workarea: Hierarchies tab


Text description of hgitm.gif follows.
Text description of the illustration hgitm.gif

In this exercise you created a more complex item hierarchy that the end user can use to drill into product details.

Exercise 3: Creating a date hierarchy template

In this exercise you will create a new date hierarchy template in addition to the existing date hierarchy templates.

Date hierarchy templates enable date hierarchies to be automatically associated with date items. For example, a date hierarchy template can be created that defines a drill from year to month to week to day. When you associate a date hierarchy template with a date item, Discoverer automatically creates new items for each date (e.g. year, month, week, day) and defines drill relationships between them.

Discoverer Administrator already uses a standard date hierarchy template which includes the hierarchy of year to quarter to month to day. If that template does not meet end user requirements, you can create a new date hierarchy. For example, you might want to drill from year to week rather than month, or even drill to hours minutes and seconds for time based data.

To create a date hierarchy template:

  1. Display the Workarea: Hierarchies tab and click the New Video Stores business area.

  2. Choose Insert | Hierarchy to display the Hierarchy Wizard dialog.

  3. Select the Date Hierarchy radio button and click Next to display the Hierarchy Wizard: Step 2 dialog.

Figure 10-11 Hierarchy Wizard: Step 2 dialog


Text description of hwiz2du.gif follows.
Text description of the illustration hwiz2du.gif

  1. Move the following date formats (i.e. in the order they are listed below) from the list on the left to the list on the right:

    • YYYY (in the Year folder).

    • "Q"Q-YYYY' (in the Quarter folder).

    • Mon-YYYY (in the Month folder).

    • "W"W Mon-YYYY (in the Week folder).

    • Dy "W"W Mon-YYYY (in the Day folder).

    • HH24 Dy "W"W Mon YYYY (in the Hour folder).

  2. Before continuing, confirm the Hierarchy Wizard: Step 2 dialog looks as shown below.

Figure 10-12 Hierarchy Wizard: Step 2 dialog


Text description of hwiz2d.gif follows.
Text description of the illustration hwiz2d.gif

  1. Click Next to open the Hierarchy Wizard: Step 3.

    This is where you assign the date hierarchy (that you have just created) to items in the business area.

Figure 10-13 Hierarchy Wizard: Step 3


Text description of hwiz3d.gif follows.
Text description of the illustration hwiz3d.gif

  1. Move Time Information.Transaction Date from the Available Items to the Selected Items list on the right.

  2. Click Next to display the Hierarchy Wizard: Step 4 dialog.

  3. Type Y-Q-M-W-D Hierarchy into the Hierarchy Name field and leave the Description field blank.

Figure 10-14 Hierarchy Wizard: Step 4 dialog


Text description of hwiz4d.gif follows.
Text description of the illustration hwiz4d.gif

  1. Click Finish.

Discoverer creates the new date hierarchy template (Y-Q-M-W-D Hierarchy) and applies the hierarchy items to the Transaction Date item in the Time Information folder. Discoverer displays the new date hierarchy items in the Time Information folder.

Note: When you apply a date hierarchy template to a date item that already has a date hierarchy applied, Discoverer creates additional date items for the new date hierarchy but does not remove date items from the old date hierarchy. If you want to remove the unused date items you must manually delete them from the folder.

In this exercise you created a new date hierarchy template in addition to the existing date hierarchy templates.

What the Discoverer Plus user sees - navigating through levels of a hierarchy

In Discoverer Plus, end users can navigate through all levels of the hierarchy, skipping levels if necessary. The figure below is a Discoverer Plus worksheet that shows the levels of the date hierarchy that you created in the previous exercise. The end user does not have to explicitly set up a date hierarchy. When a date that is part of a hierarchy is selected for a workbook, the user can navigate to any other element in the date hierarchy using a pop-up menu.

For more information about date hierarchies, click Help.

Figure 10-15 Workbook in Discoverer Plus - navigating through items in a date hierarchy


Text description of plush.gif follows.
Text description of the illustration plush.gif

In this exercise you created a new date hierarchy template in addition to the existing date hierarchy templates

Exercise 4: Modifying the content type of an item

In this exercise you will modify the content type property of some items.

The content type property determines how Discoverer Plus treats items that it displays in a workbook.

Discoverer Plus displays items in one of two ways:

The content type item property can have one of the two following values:

The table below lists some applications and the file extensions that are used to launch them.

Table 10-1 File content type examples
Application  File name extension 

MS Word 

.doc 

Media Player 

.avi 

MS Excel 

.xls 

Lotus Screencam 

.scm 

Web Browser 

.html 

In the New Video Stores business area, the Store Information.Reports item refers to a MSWord document and the information in the database column is the directory path and filename. The Product Information.Full Description item refers to a Web page containing HTML code and the information in the database column is also the directory path and filename. The Reports document must be opened by a word processor, and the Full Description document by a Web browser.

The following exercise shows how you modify the content type of an item so that Discoverer Plus will pass the contents of the item (i.e. the directory path and file name) to the operating system, which will launch the appropriate application to view the contents of the file.

How to modify the content type of an item:

  1. Display the Workarea: Data tab and select the following items:

    • Video Analysis.Reports

    • Video Analysis.Description

    • Video Analysis.Full Description

  2. Choose Edit | Properties to display the Item Properties dialog for the items selected above.

  3. Set the Content type to FILE.

  4. Click OK.

In this exercise you modified the content type property of some items.

What the Discoverer Plus user sees - external application icons in the worksheet

When you display these items in Discoverer Plus, the information is displayed in the appropriate word processor application or Web browser.

The end user can tell which items need external applications to run based on the icon displayed in the worksheet. The figure below shows an example of a worksheet that can invoke Microsoft Word and an HTML page.

Figure 10-16 Worksheet sample with external application icons in Discoverer Plus


Text description of plusft.gif follows.
Text description of the illustration plusft.gif

Exercise 5: Defining drill to detail data

In this exercise you will edit a list of values item class that is also used for drill-to-detail.

In Discoverer Plus, end users can use the hierarchies that you create to drill up or down to view different levels of aggregated data. End users want to drill to detail, that is jump to related information details in the aggregated data. For example, an end user reviewing daily sales figures from a number of video stores might want to see the detail transaction records that make up the daily total.

To enable an end user to drill to the detail data, you need to create a drill-to-detail item class. A drill-to-detail item class enables end users to select an aggregated detail item in a worksheet and drill directly to the source data that was aggregated to produce the result.

You can drill to any item in an item class and the items in an item class can be from different folders. These two conditions mean that a link exists between the items, and end users can easily drill to detail to any folder which has an item in the same item class.

The following steps show how easy it is to edit an item class that drills from aggregated information into more detailed information, and for viewing a list of unique values from the Region folder. (i.e. an item class created by the Load Wizard at the start of this tutorial. for more information, see Chapter 3, "Exercise 2: Creating a new business area using the Load Wizard")

To edit a drill-to-detail item class:

  1. Display the Workarea: Item classes tab.

  2. Click the (+) symbol to expand the New Video Stores business area to display all item classes.

  3. Right-click Region and choose Edit Item Class from the popup menu.

  4. Display the Edit Item Class dialog: List of Values tab.

  5. Make sure that the Region item in the Store Information folder is selected (see the figure below).

Figure 10-17 Edit Item Class dialog: List of Values tab


Text description of ic1dr.gif follows.
Text description of the illustration ic1dr.gif

The next steps define a list of unique values in the Region item.

  1. Display the Edit Item Class dialog: Select Items tab.

  2. Make sure that the Selected items list displays the following:

    • Store Information.Region

    • Store and Sales Details.Region

    • Video Analysis.Region

  3. Make sure that the Use these items to drill to detail check box is selected.

    This determines that the item class can be used in drills-to-detail.

  4. Before continuing, make sure that the Edit Item Class dialog looks like the figure below.

Figure 10-18 Edit Item Class dialog: Select Items tab


Text description of icselit.gif follows.
Text description of the illustration icselit.gif

  1. Click OK to save the settings and close the Edit Item Class dialog.

Note: Because a list of values is associated with the Region item, Discoverer displays a + symbol next to it in the Workarea: Data tab. End users can view the list of unique values referenced by the item.

For more information, click Help.

In this exercise you edited a list of values item class that is also used for drill-to-detail.

Lesson summary

In this lesson you set up items in a hierarchy to enable end users to drill up and down the hierarchy to view related information.

In this lesson you completed the following exercises:

In the next lesson you will create summary folders. Summary folders help reduce the time taken to retrieve data for Discoverer Plus and Discoverer Viewer users.


Go to previous page Go to next page
Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index