Professional Documents
Culture Documents
OBIEE Training Day2 Answers and Dashboards
OBIEE Training Day2 Answers and Dashboards
2008 KPMG Advisory Services Private Limited, the Indian member firm of KPMG International, a Swiss cooperative. All rights reserved.
Agenda : Day I
Introduction Oracle s Enterprise Performance Management System Oracle BI Enterprise Edition Plus Architecture Session I Oracle BI Answers Navigation Create queries Format views and charts Add user interactivity and dynamic content Session II Oracle BI Interactive Dashboards Navigation Build a custom Dashboard to contain the requests and views created
1
Introduction
Interactive Dashboards
Ad-hoc Analysis
Disconnected Analytics
SmartView
Oracle BI Server
Intelligent Caching Services Multidimensional Calculation and Integration Engine Intelligent Request Generation and Optimized Data Access Services
Business Process
Key functionalities
Support for unstructured data Multi-dimensional OLAP capability Drill to transaction capability Proactive alerts MSOffice integration Role based security
Benefits
Single portal for enterprise wide information dissemination Enables user to quickly zero in on problem areas Enables automatic delivery of critical information Enables use of MSOffice tools as the interface for query, analysis and input Maintains confidentiality of information
10
12
Login
Login
13
Default Dashboard
Click the Answers link to navigate to the Answers start page.
14
Oracle BI Answers
Select the Sales History subject area by clicking the SH link in the Subject Areas list.
15
Oracle BI Answers
In the left-hand selection pane of the Answers interface, click the Plus icon next to Times to expand it. Expand the Calendar table and click the Calendar Month Desc column to add it to your query criteria, which appears in the right pane.
16
Oracle BI Answers
Click the Calendar Month Name column to add it to your query. From the Products table, add the Prod Category column. Finally, add Measures > Sales Facts > Amount Sold (000). Your query should look like this:
17
Oracle BI Answers
You can reorder the columns in your query by clicking and dragging them. Drag the Prod Category column in front of the columns from the Calendar table in your query. Your query criteria should look like this:
18
Oracle BI Answers
Add a saved filter to the query to limit the data to the last 12 months (based on the SH data, this will cover from January to December 2001). Under Filters in the left-hand selection pane, expand the SH folder and click the Most Recent 12 Months. The Apply Saved Filter dialog box is displayed.
This filter has been created and saved in a shared folder so that it can be used by other users. The filter uses a variable defined as the value of the maximum month ID, which has been created in the Oracle BI repository metadata to ensure that it is synchronized with the data.
19
Oracle BI Answers
Click OK in the Apply Saved Filter dialog box to add the filter to your query.
20
Oracle BI Answers
To add a filter for the direct channel, perform the following steps: 1. Click the Criteria tabs, using the selection pane, add Channels > Channel Desc to your query criteria.
2. In the criteria pane, click the Filter button on the Channel Desc column to add a filter on that column.
21
Oracle BI Answers
3. In the Create/Edit Filter dialog box, click the All Choices link to display all values for the column.
22
Oracle BI Answers
4. Verify that the Operator for the filter is set to "is equal to / is in" and then click the Direct Sales value in the list of choices. Direct Sales is added as a value in the filter. Click OK to create the filter.
5. Click the Delete button (with and X) on the Channel Desc column to delete it from the criteria. You are filtering on the channel, but you don't need the column in your query.
23
Oracle BI Answers
6. Your query criteria should look like this:
24
Oracle BI Answers
7. Click the Results tab to view the results of your query.
25
Oracle BI Answers
Return to the Criteria tab and remove the Channel Desc filter you just created by clicking the X next to the filter in the Filters section.
26
Oracle BI Answers
To create totals and format results, perform the following steps: 1. To open the Edit Table view for your results, click the Edit view icon for the Table view in the Compound Layout.
27
Oracle BI Answers
2. Click the Total By icon above the Calendar Month Desc column to add subtotals by month to your results.
The measure is totaled each time the value in Calendar Month Desc changes. In this case, the default aggregation rule (SUM) is applied. The default aggregation rule is set in the Oracle BI repository metadata, but can be overridden using controls in the Edit Formula dialog box accessed through the Edit Formula icon in the Edit Table view or the Criteria tab.
28
Oracle BI Answers
3. Click the Grand Total button at the view level to add a grand total to your results.
29
Oracle BI Answers
4. In the Display drop-down menu, select Results Only to eliminate the Header Toolbars.
30
Oracle BI Answers
5. Scroll down to the bottom of the Results pane and click the All Pages button to navigate to the end of your results. Verify that the grand total that you set for the results is present.
31
Oracle BI Answers
6. In the Display drop-down menu, select Header Toolbars with Results to access the Header Toolbars.
32
Oracle BI Answers
7. Click the Column Properties icon above the Amount Sold (000) column. In the Column Properties dialog box, click the Data Format tab, select the Override Default Data Format option, then select Use 1000's Separator option and click OK. This will display a comma separator in the number results for the column.
33
Oracle BI Answers
8. In the Edit Column Format dialog box, click the Save button. If you have permissions as a Web administrator, you can save the data format as the system-wide default for the column you are working with, or for all columns with the same data type.
Since you don't want to set this format as the system-wide default, click in the dialog box to close the Save menu.
34
Oracle BI Answers
9. Click OK and verify that a 1000's separator is displayed in the results for the Amount Sold (000) column.
35
Oracle BI Answers
To create a chart, perform the following steps: 1. Pick Chart in the View menu. By default charts are displayed as a Vertical Bar graph.
36
Oracle BI Answers
2. Select Line from the Graph drop-down menu and 2D from the Type drop-down menu.
37
Oracle BI Answers
3. Under the Legends icon in the column area of the left side of the Chart view, select Prod Category create a separate line in the chart for each product category. Click the Redraw button at the bottom to confirm the change.
38
Oracle BI Answers
4. Click the Axis Titles and Labels icon. In the Left tab of the Axis Titles & Labels dialog box, select Custom Title and change the custom title to Amount Sold. In the Bottom tab, change the custom title to Calendar Month.
39
Oracle BI Answers
5. Explore some of the other options in the Axis Titles & Labels dialog box. For example, you can toggle whether scale labels are displayed on the axes and set orientation guidelines for your labels. In addition, you can set overrides for the default data format on measures, similarly to the modification you made to the amount sold column in the steps above. Click OK. Your chart should look like this:
40
Oracle BI Answers
6. Click the General Chart Properties icon. In the General dialog box, select Custom Title, enter Sales Last 12 Months as the chart title, and click OK.
41
Oracle BI Answers
7. Click the Additional Charting Options icon. In the Additional Charting Options dialog box, click the Borders & Colors tab and set the background color to light gray. Click the color box for Background Color and, in the Color Selector dialog box, select light gray from the palette and click OK.
42
Oracle BI Answers
8. In the Additional Charting Options dialog box, click the Grid Lines tab and set the major grid line color to white and the minor grid line color to light gray, using the same method as above. After you've set both colors, click OK to apply your changes.
43
Oracle BI Answers
Your chart should look like this:
44
Oracle BI Answers
9. Sort the legend by sorting the data. You want to sort by month in ascending order and then by sales in the last month in descending order: a. Click the Criteria tab and add the Measures > Sales Facts Current Month > Amount Sold (000) Current Month column to your query.
b. Click the Order By button in the Calendar Month Desc column. The arrow points up to indicate an ascending sort.
c. Click the Order By button in the Amount Sold (000) Current Month column twice. The arrow points down to indicate a descending sort, and the number 2 is displayed to indicate a secondary sort.
45
Oracle BI Answers
10. Click the Results tab to verify that your sort has been applied to the legend in your chart. The legend is sorted to match the order of the lines in the last month.
46
Oracle BI Answers
11.Select Compound Layout from the View drop-down menu.
47
Oracle BI Answers
12.Click the Add View link and select Chart to add the Chart view to the Compound Layout view.
48
Oracle BI Answers
13. Scroll to the bottom of the Compound Layout view and drag the Chart view above the Table view in the Compound Layout. A yellow line will appear when you have a valid insertion point.
49
Oracle BI Answers
14. Click the Delete View icon in the Title view to delete it from the Compound Layout.
15.Click the Save Request icon. In the Choose Folder dialog box, click Shared Folders, then click the Create Folder button. In the Create Folder In Shared Folders dialog box, enter Learn and click OK.
50
Oracle BI Answers
16. In the Save Request dialog box, click the Learn folder. Enter Category Sales as the name and click OK.
51
Oracle BI Answers
To create and set the basic layout for a pivot table, perform the following steps: 1. Pick Pivot Table in the View menu. This opens the Pivot Table Layout page.
52
Oracle BI Answers
2. Examine the default pivot table that's created and displayed below the layout controls. Measure labels for the measures in your query appear in blue as columns in the pivot table. Row headings for the dimensional attributes in your query are displayed in grey as rows by default. The measures are displayed at the intersection of the rows and columns.
53
Oracle BI Answers
3. Deselect the Display Results option. This option displays the results of any layout modifications you make as you work in the Pivot Table layout. To speed performance, you will only view your results periodically.
4. Drag the Amount Sold (000) Current Month column from the Measures area to the Excluded area in your layout controls. When you see a blue line appear around the control, you have a valid insertion point and can drop the column.
54
Oracle BI Answers
5. Drag the Calendar Month Desc column below the Measure Labels in the Columns area in your layout controls. When you see a blue line appear, you have a valid insertion point and can drop the column.
55
Oracle BI Answers
6. Drag the Calendar Month Name column below the Calendar Month Description in the Columns area in your layout controls. Click the Display Results link to verify your changes in the pivot table.
56
Oracle BI Answers
Your pivot table should look like this:
57
Oracle BI Answers
To add calculations and formatting to the pivot table, perform the following steps: 1. You need to add a measure to your pivot table to display the percentage of total monthly sales for each product category. Duplicate the Amount Sold measure. Click the More Options icon in the Amount Sold (000) measure and select Duplicate Layer.
58
Oracle BI Answers
2. Click the More Options icon in the duplicated measure and select Format Headings.
59
Oracle BI Answers
3. In the Edit Format dialog box, change the caption to % of Period and click OK.
Also note the other formatting options available in the dialog box.
60
Oracle BI Answers
4. Click the More Options icon in the duplicated measure and select Show Data As > Percent of Column.
This setting means that the measure will be displayed as a percentage of the column, which is Month. Note the other options that are available; you can present a measure as a percentage of the total amount for any dimension present in the pivot table layout, for example a row or a section. You can also set alternate aggregation rules for the measure using the Aggregation Rule option (the default is Sum). 61
Oracle BI Answers
5. To total the values of the rows in each column, click the Total icon in the Rows layout control and select After.
Note that you have formatting options available for the total row labels as well as values.
62
Oracle BI Answers
6. To add totals for each column in each row, click the Total icon in the Columns layout control and select After.
63
Oracle BI Answers
7. Click the click the More Options icon in the Calendar Month Desc column and select Hidden.
64
Oracle BI Answers
8. To show both measures together within each calendar month, drag Measure Labels under Calendar Month Name in the Columns layout control.
65
Oracle BI Answers
9. Click the Display Results link. Your pivot table should look like this:
Note that there are section and page levels of the pivot table that we have not used in this example. Effective use of these would require additional attributes. Experiment, if you want, by temporarily dragging Prod Category to section and then page. 10. Save the request by clicking the Save Request icon.
66
Oracle BI Answers
To create a Narrative View, perform the following steps: 1. Click Answers to navigate to the Answers start page, and select the Sales History subject area by clicking the SH link in the Subject Areas list.
You want a query to detail what happened in the most recent month, pointing out all product categories where sales are less than the previous month.
67
Oracle BI Answers
2. In the left-hand selection pane of the Answers interface, expand the Products table and click the Prod Category column to add it to your query criteria.
68
Oracle BI Answers
3. Add Measures > Month Ago Facts> % Chg Amount Sold MAgo to your query . Your query should look like this:
69
Oracle BI Answers
4. Add a saved filter to the query to limit the data to the current calendar month. Under Filters in the left-hand selection pane, expand the SH folder and click the Current Calendar Month filter. Click OK.
This filter has been created and saved in a shared folder so that it can be used by other users. The filter uses a maximum month variable defined in the Oracle BI repository metadata to ensure that it is synchronized with the data.
70
Oracle BI Answers
To add a filter for the percent change in the amount sold, perform the following steps: 1. In the criteria pane, click the Filter button on the % Chg Amount Sold MAgo column to add a filter on that column.
71
Oracle BI Answers
2. In the Create/Edit Filter dialog box, select the is less than operator, and enter 0 as the value, then click OK.
72
Oracle BI Answers
The filter is added to the existing saved filter you used earlier. Your filters should look like this:
73
Oracle BI Answers
3. Click the Display Results button to view the results of your query.
74
Oracle BI Answers
4. Select Narrative from the View drop-down menu.
75
Oracle BI Answers
5. In the Narrative view workspace, enter the following: @1 declined @2% this month compared with last month in the Narrative field.
The narrative is a combination of text and query column values. In this example, @1 refers to the first column in the query, Prod Category, and @2 refers to the second column, % Chg Amount Sold MAgo. Note that you can control the number of row values returned in the Narrative view by setting the Rows to display value. By default, all queried rows are displayed.
76
Oracle BI Answers
3. To highlight the column values in the narrative, select @1 in the narrative and click the Bold button. Also add bold tags to @2%.
77
Oracle BI Answers
4. Select No Results from the View drop-down menu. You need to create a No Results view to appear when there are no results for the query.
78
Oracle BI Answers
5. In the No Results view workspace, enter No categories declined this month! as the headline. Enter All categories had positive sales results compared with the previous month as text.
79
Oracle BI Answers
6. Click the Save Request icon. In the Choose Folder dialog box, select the Learn folder and save the request as Narrative and No Results Views.
80
Oracle BI Answers
To create a Column Selector, perform the following steps: 1. Click the Answers link and open the first query you saved. In the selection pane, click Shared Folders > Learn > Category Sales.
81
Oracle BI Answers
2. Click the Modify button.
82
Oracle BI Answers
3. Click the Results tab and select Column Selector from the View drop-down menu.
83
Oracle BI Answers
4. Select the Include Selector option in Column 3, currently Prod Category.
84
Oracle BI Answers
5. In the selection pane, click the following columns to make them available in the Column Selector: Customers. Country Region, Customers. Country, and Channels. Channel Desc.
Your Column Selector in the results pane should look like this:
85
Oracle BI Answers
6. Select Compound Layout from the View drop-down menu.
86
Oracle BI Answers
7. Click the Add View link and select Column Selector to add the Column Selector view to the Compound Layout view.
87
Oracle BI Answers
8. Scroll to the bottom of the Compound Layout and drag the Column Selector view above both Table and Chart views.
88
Oracle BI Answers
9. In the Column Selector, select Country.
89
Oracle BI Answers
10. Your Compound Layout view should look like this:
90
Oracle BI Answers
To create a View Selector, perform the following steps: 1.Duplicate the existing chart: a. Using the Views menu, navigate to the Chart view.
91
Oracle BI Answers
b. Click the Menu icon and select Duplicate View.
92
Oracle BI Answers
You should now have a new view, Chart:2:
93
Oracle BI Answers
c. In the Type drop-down menu, select 3D.
94
Oracle BI Answers
2.Select View Selector from the View drop-down menu.
95
Oracle BI Answers
3. In the View Selector design workspace, select Chart, Chart:2, and Pivot Table in the Available Views field, using CTRL + Click to select multiple views.
96
Oracle BI Answers
Click the Move Right icon to add them to the Views Included field.
97
Oracle BI Answers
4. Select Chart in the Views Included field, click the Rename button, and, in the Rename dialog box, rename it 2D Chart. Click OK.
98
Oracle BI Answers
5.Rename Chart:2 as 3D Chart and Pivot Table as Trend Data. Use the Move buttons to arrange the views in the list as follows: 2D Chart, 3D Chart, Trend Data.
99
Oracle BI Answers
6. Use the View drop-down menu to navigate to the Compound Layout view. Delete the Chart view from the Compound Layout.
100
Oracle BI Answers
8.Add the View Selector view using the Add View button and drag it above the Table view.
101
Oracle BI Answers
9.Select Trend Data from the View Selector.
102
104
The Oracle BI Presentation Services Administration window offers access to many administrative features, including session monitoring and management of user and group privileges across the Oracle BI Presentation Catalog.
105
106
The dashboard inherits the security of the group folder. Click Finished again to close the Manage Dashboards window. Finally, click Close Window to close the Oracle BI Presentation Services Administration screen.
107
108
109
7. In the Dashboard Editor, you can drag saved content from your Presentation Catalog directly into the dashboard. Sections are automatically created in the layout to contain the requests and other objects you add to the dashboard. In the left-hand selection panel, expand the Learn folder you've saved your work in.
110
111
Notice that a section was automatically added to contain the request. You could also have dragged a Section object from the Dashboard Objects palette to create the section before dragging content into the section. Sections and columns are containers you can use to control the layout of your dashboards.
112
113
You can select any other view; note that the list is limited to views which you've created or worked with for the request. The Compound Layout is the default view. The No Results view is always displayed if there are no results for the request at runtime.
114
115
116
Note that the Column Selector only applies to the request that contains it. If you select a column in the control, it will only apply to the table and chart, not the narrative request in the same dashboard.
117
118
This prompt will filter the Country Region column in any requests which contain it in a dashboard with which it is associated. Note that you can control several aspects of the prompt. You can select the type of control users will use to enter their selections in the prompt, and you can determine what values will be presented in a drop-down list or multi-select control, limiting the available values either through SQL or by constraining the values based on the results of another dashboard prompt.
119
120
You have created the prompt, but for it to take effect on any embedded requests in a dashboard, the requests must contain filters on the column being prompted.
121
122
123
7. Save the Category Sales Request and, using the same steps, add a filter to the Narrative and No Results Views request and save it. When complete, the filters on the request should look like this:
124
125
126
127
128
129
130
131
132
133
134
135
136
137
4. In the Title field, enter Category Sales Last 12 Months for @{CountryRegion}. This is a reference to the Presentation variable you are going to create. Click OK.
138
Click OK to save your changes and return to the Compound Layout view. Add the Title view in the Compound Layout, if not already present.
139
140
Note that you could also reference a Request Variable. Request Variables are defined as SessionVariables in the Oracle BI metadata and are instantiated when the user's session begins. Their values for any request can be updated by dashboard prompts.
141
By entering the name of the variable here, you are creating the variable as well as setting it to be populated by the user selection in the Prompt for Country Region.
142
10. Select Asia in the Country Region prompt and click Go.
143
144
By the close of this session you would have learned how to: Create and work with different views, including charts, pivot tables, and narratives Use selector views to add interactivity and navigability to requests Build, lay out, and work with Interactive Dashboards Use dashboard prompts to filter dashboard data and populate Presentation variables
145
Thank You
146