Skip Headers
Oracle® Application Server Developer's Guide for Microsoft Office Interoperability
10g Release 3 (10.1.3.1.0)

Part Number B28947-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8 Delivering Business Intelligence Information to Microsoft Excel

This chapter demonstrates how to deliver business intelligence information to Microsoft Office. It shows how you can save an Oracle Business Intelligence Discoverer worksheet as a Microsoft Excel worksheet and how you can use the Oracle Business Intelligence Spreadsheet Add-In to work with live OLAP data in Microsoft Excel.

This chapter contains the following sections:

8.1 Overview

Oracle Business Intelligence enables you to rapidly develop and deploy data warehouses and data marts with an integrated array of query, reporting, analysis, data integration and management, desktop integration, and Business Intelligence application development capabilities. Oracle Business Intelligence, available both as a standalone or as part of Oracle Application Server Enterprise Edition, includes the following components:

Microsoft Excel remains the most widely used worksheet tool. It is also a product with which many users are familiar. While OracleBI Discoverer provides users with a powerful and secure environment to analyze and visualize data from data marts and data warehouses, it may be required at certain times to provide this data to users who do not have access to OracleBI Discoverer. Under this situation, it makes sense to provide users with access to the data in order to use the features of Microsoft Excel to further analyze data. OracleBI Discoverer enables users to do just this by exporting their OracleBI Discoverer worksheets as Microsoft Excel worksheets, with formatting and layout preserved.

OracleBI Discoverer also enables users to export crosstabs as Microsoft Excel pivot tables. This powerful feature means that users neither need to know how to create pivot tables in Microsoft Excel (which can be a nonintuitive exercise for novice users), nor do they need to waste time in report creation; instead they can spend more time on analysis.

Users can e-mail OracleBI Discoverer reports (tables or crosstabs) as Microsoft Excel worksheets to other people. This way they can share the results of their analysis and insight with others. By preserving the layout, format, and certain calculations in the exported worksheet, users can spend more time on analysis and less on re-creating reports.

The use of the Spreadsheet Add-In combines the features of Microsoft Excel with the robustness, security, and scalability of Oracle Database. Users can use the familiar interface of Microsoft Excel, and at the same time, have their data inside a secure Oracle Database. Users can also make use of the powerful analytics built inside the OLAP option of the database.

Figure 8-1 illustrates the various ways that Oracle Business Intelligence interoperates with Microsoft Office.

Figure 8-1 Business Intelligence Interoperation with Microsoft Excel

Description of Figure 8-1 follows
Description of "Figure 8-1 Business Intelligence Interoperation with Microsoft Excel"

8.2 Prerequisites

To perform the steps outlined in this chapter, first install the following software:

8.3 Step-by-Step Procedures

This chapter shows two ways that you can use Oracle Business Intelligence to send business intelligence information to Microsoft Excel:

8.3.1 Pushing Business Intelligence Information to Microsoft Excel

If you want to share your OracleBI Discoverer worksheet with others, it is helpful to do so using a familiar format that does not require them to install additional software. OracleBI Discoverer enables you to meet this requirement in the following ways:

  • By viewing an OracleBI Discoverer worksheet on the Web in a browser.

  • By making a worksheet available in many different formats, including HTML, PDF, CSV, text, and so on.

  • By saving an worksheet as a Microsoft Excel worksheet. You can export the worksheet to the Microsoft Excel format, and also save any graphs within your worksheet as .PNG (or .GIF) files. You can then insert these graphics into the worksheet. When you export to Microsoft Excel, you can also export formats and formulas, and your worksheet fonts, colors, and styles are preserved.

Three ways you can push business intelligence information to Microsoft Excel are the following:

8.3.1.1 Saving an OracleBI Discoverer Worksheet as a Microsoft Excel Worksheet

To save an OracleBI Discoverer worksheet as a Microsoft Excel worksheet, perform the following steps:

  1. Start OracleBI Discoverer Plus and connect to the relational data source where you installed the samples as described in Section 8.2, "Prerequisites".

  2. In the Open Workbook from Database dialog box, expand the Sales & Profits by Time, Geography, & Channel sample workbook.

  3. Select the Annual Regional Sales & Profits by Channel sample worksheet and click Open.

  4. Apply some formatting to the worksheet, for example, make some text bold and add some color (see Figure 8-2).

    Figure 8-2 OracleBI Discoverer Worksheet with Formatting

    Description of Figure 8-2 follows
    Description of "Figure 8-2 OracleBI Discoverer Worksheet with Formatting"

  5. Select File, then Export to display the Export Wizard.


    Note:

    You can also click the Export to Excel toolbar button. This exports your worksheet using default settings. If you want to specify the export settings yourself, use the menu.

  6. Select Current Worksheet.

  7. Click Next.

  8. From the Table list, select Microsoft Excel Workbook.

    If the worksheet was a crosstab, you could, optionally, select Microsoft Excel Workbook with Pivot Table instead.

  9. From the Graph list, select Portable Network Graphics.

  10. In the Destination field, enter the location where you want to save the exported files. Click Browse, if necessary.

  11. In the Name field, enter <YourName> Exported Worksheet (see Figure 8-3).

    Figure 8-3 Exporting a Worksheet in Microsoft Excel Format

    Description of Figure 8-3 follows
    Description of "Figure 8-3 Exporting a Worksheet in Microsoft Excel Format"

  12. Click Next.

  13. Select Use Current On Screen Size for the size of the exported graph.

  14. Click Finish to start the export operation.

    When the export operation is completed, the Export Log dialog box displays a list of the files created during the export operation.

  15. Click OK.

    Figure 8-4 shows that the formatting you applied earlier has been preserved.

    Figure 8-4 Exported Worksheet in Microsoft Excel (with Formatting Preserved)

    Description of Figure 8-4 follows
    Description of "Figure 8-4 Exported Worksheet in Microsoft Excel (with Formatting Preserved)"

    The graph is exported into a separate .PNG file. If you want to include it, you must manually insert it into the Microsoft Excel worksheet.


Note:

You have the following options when exporting to Microsoft Excel:
  • Microsoft Excel worksheet with formatting preserved.

  • Microsoft Excel worksheet with an Microsoft Excel Pivot Table created. This option is available for Discoverer crosstabs.

In addition, you can export to a CSV (comma-delimited values) format, which is suitable when you do not need formatting and need to conserve the file size.


8.3.1.2 Saving an OracleBI Discoverer Workbook as a Microsoft Excel Web Query

You can also export OracleBI Discoverer workbooks in Microsoft Excel Web Query (.IQY) format. This means that the Microsoft Excel worksheet stores the query used to obtain the OracleBI Discoverer data, so that users can refresh the data within Microsoft Excel. This ensures that users can always view the most up-to-date data.

  1. Start OracleBI Discoverer Plus and connect to the relational data source where you installed the samples as described in Section 8.2, "Prerequisites".

  2. Expand the Sales & Profits by Time, Geography, & Channel sample workbook.

  3. Select the Annual Regional Sales & Profits by Channel sample worksheet and click Open.

  4. Select File, then Export to display the Export Wizard dialog box.

  5. Select Current Worksheet.

  6. Click Next.

  7. From the Table list, select Web Query for Microsoft Excel 2000+.

  8. In the Destination field, enter the location where you want to save the exported files. Click Browse, if necessary.

  9. In the Name field, enter <YourName> Exported Worksheet2.

  10. Click Finish to start the export.

    When the export is completed, the Export Log dialog displays a list of the files created during the export.

  11. Click OK.

    You are prompted to enter the password for the current user.

  12. Enter your password and click OK.

    Microsoft Excel connects to the database, then retrieves and displays the latest data.

8.3.1.3 Sending a Worksheet as an E-Mail Attachment

If you want to send a worksheet directly to another user's e-mail account, you can use OracleBI Discoverer Viewer. You can e-mail the worksheet in a number of formats, such as HTML (in a ZIP file), Oracle Reports, XML, PDF, and a Microsoft Excel workbook.

To send a worksheet as an e-mail attachment, perform the following steps:

  1. Start OracleBI Discoverer Viewer and connect to the relational data source where you installed the samples as described in Section 8.2, "Prerequisites".

  2. Expand the Sales & Profits by Time, Geography, & Channel sample workbook.

  3. Click the Annual Regional Sales & Profits by Channel sample worksheet.

  4. From the Actions list, click Send as e-mail.

  5. From the list, select Microsoft Excel Workbook.

  6. Click Next.

  7. In the Sender field, enter your own e-mail address.

  8. In the Recipient field, enter the e-mail address of the user to whom you want to send the worksheet. For the purposes of this exercise, enter your own e-mail address.

  9. In the Subject field, enter Here is that worksheet.

  10. In the Body field, enter Attached. Regards (see Figure 8-5).

    Figure 8-5 Sending a Worksheet as a Microsoft Excel Attachment

    Description of Figure 8-5 follows
    Description of "Figure 8-5 Sending a Worksheet as a Microsoft Excel Attachment"

  11. To preview what the attached file will look like, click View Attachment.

  12. Click Finish.

  13. Check your inbox to make sure that you received the worksheet.

  14. Open the message and open the attached Microsoft Excel worksheet.

8.3.2 Pulling Live Data into Microsoft Excel

Many users within an enterprise are more familiar and prefer working with desktop applications, such as Microsoft Excel. Therefore, most enterprises have seen a proliferation of data-extraction programs and downloading of static data into worksheets within their data warehouse environment. This causes enormous problems, both technical and business-related. Continually downloading and manipulating data in this manner causes an ever-expanding range of disconnected worksheets. It is never clear from the worksheet analysis how historical data based on numerous sources is managed. For example, what happens when the source systems are updated or restarted? Because there is no connection to the source data, the user is not alerted to the availability of refreshed data. As a result, it is never clear which worksheet is the latest version. Worksheets also have scalability limitations in terms of the volume of data that can be processed by a single sheet. Again, users resolve this by creating multiple worksheets and attaching them together with formulas.

The OracleBI Spreadsheet Add-In resolves all of these issues and many more. It combines the analytic power and scalability of Oracle OLAP with the familiarity of Microsoft Excel by embedding OLAP capabilities directly within Microsoft Excel. Users report against common business definitions that are stored centrally in Oracle Database. This provides a consistent and high-quality view of their corporate information. In addition, users can perform ad hoc analysis on this data using traditional OLAP exploration techniques such as drilling, pivoting, and paging the view of the data.

To pull data into Microsoft Excel, perform the following steps:

  1. Start Microsoft Excel.

  2. You should see a menu option for OracleBI, as shown in Figure 8-6.

    Figure 8-6 OracleBI Spreadsheet Add-In Menu Option

    Description of Figure 8-6 follows
    Description of "Figure 8-6 OracleBI Spreadsheet Add-In Menu Option"


    Note:

    If you do not see this option, make sure that you have downloaded and installed the OracleBI Spreadsheet Add-In as described in Section 8.2, "Prerequisites".

  3. Select OracleBI, then New Query to create a new OLAP query in your worksheet.

  4. Click the Connection Editor tab.

  5. Click New.

  6. Enter an appropriate Description (see Figure 8-7), and then enter the Host Name, Port Number, and SID for the OLAP data source where you installed the samples as described in Section 8.2, "Prerequisites".

    Figure 8-7 Connecting to the Database

    Description of Figure 8-7 follows
    Description of "Figure 8-7 Connecting to the Database"

  7. Click Save.

  8. Click the OLAP Connection tab.

  9. Enter your User name and Password.

  10. Click Connect.

    The Oracle OLAP Query Wizard appears. This is the same as the Query Wizard in OracleBI Discoverer, so if you are already familiar with that, you do not need to learn how to use a new tool.

  11. Click Next to continue from the Welcome page.

  12. The Available list contains all the OLAP measures and dimensions that can be displayed in your worksheet.

    Expand the Electronics - KPIs folder, select Sales Revenue, and click the right-angle bracket (>).

  13. In this report, Promotions will not be part of the analysis, so select Promotion and click the left-angle bracket (<) to remove it from the list (see Figure 8-8).

    Figure 8-8 Items for the Query

    Description of Figure 8-8 follows
    Description of "Figure 8-8 Items for the Query"

  14. Click Next.

  15. In the Layout step of the wizard, you can change the layout of the data by dragging and dropping the appropriate dimension or measure tiles.

    Move Channel to the Page Items region.

  16. Move Product and Geography so that Product is displayed on the Row edge and Geography is displayed first in the Page Items region.

    The layout should look like Figure 8-9.

    Figure 8-9 Layout of OLAP Query

    Description of Figure 8-9 follows
    Description of "Figure 8-9 Layout of OLAP Query"

  17. Click Next.

  18. Select the members for the Channel dimension.

    Click Channel total, then click the right-angle bracket (>).

  19. Click Next.

  20. Select the members for the Geography dimension.

    1. Expand the World total node.

    2. Expand the Americas node.

    3. Expand the Northern America and Southern America nodes.

    4. Select the following: Americas; Northern America; Canada; United States of America; Southern America; Argentina; and Brazil, then click the right-angle bracket (>) (see Figure 8-10).

      Figure 8-10 Members for the Geography Dimension

      Description of Figure 8-10 follows
      Description of "Figure 8-10 Members for the Geography Dimension"

  21. Click Next.

  22. Select the members for the Products dimension.

    1. Click the Conditions tab.

    2. Expand the Top/Bottom folder.

    3. Select Top 10 based on Sales Revenue, and click the right-angle bracket (>).

    4. In the Selected list, select the Top 10 condition.

    5. Click the 10 hyperlink, then change the value to 5.

      The condition now reads Start with Product: Top 5 based on Sales Revenue (see Figure 8-11).

      Figure 8-11 Members for the Products Dimension

      Description of Figure 8-11 follows
      Description of "Figure 8-11 Members for the Products Dimension"

  23. Click Next.

  24. For the Times dimension, select 2000 and 2001, then click the right-angle bracket (>).

  25. Click Finish to execute the query. The results should look something like Figure 8-12.

    Figure 8-12 OLAP Query Results in Microsoft Excel

    Description of Figure 8-12 follows
    Description of "Figure 8-12 OLAP Query Results in Microsoft Excel"

    The OLAP query returns the data for the top 5 products based on the sales revenue for the Americas, Channel total, and the year 2000.

    Whenever the underlying data changes, you can refresh your worksheet so that it reflects those changes simply by selecting the data and choosing Refresh Query from the OracleBI menu.

  26. Save your worksheet.

    The data in the worksheet is preserved. This means that when you close the worksheet or disconnect from the database, you simply have to reconnect to the OLAP data source to retrieve the most recent data.

  27. The results of the query use default formatting. You can use Microsoft Excel's formatting features to change the formatting as required.

    1. In the worksheet, select the cells containing the revenue values.

    2. Click the Currency Style tool.

      Currency formatting is applied to the data.

    3. Remove the decimal places by clicking the Decrease Decimal tool twice.

      The OLAP data should now look something like Figure 8-13.

      Figure 8-13 OLAP Data with Microsoft Excel Formatting

      Description of Figure 8-13 follows
      Description of "Figure 8-13 OLAP Data with Microsoft Excel Formatting"

  28. Save your worksheet.

  29. You can add Microsoft Excel calculations, working with the OLAP data just as you would any other data in a Microsoft Excel worksheet.

    1. To add a subtotal formula for the Revenue values, first select the cell below the last Revenue value, then click the Auto Sum tool.

      The subtotal formula is created.

    2. Press Enter to accept the formula. The results should look something like Figure 8-14.

      Figure 8-14 Microsoft Excel Subtotal of OLAP Data

      Description of Figure 8-14 follows
      Description of "Figure 8-14 Microsoft Excel Subtotal of OLAP Data"

  30. Save your worksheet.

  31. You can also use the Microsoft Excel Chart Wizard to create charts based on the OLAP data, just as you do with regular Microsoft Excel data.

    1. Select the product and revenue values, then click the Chart Wizard tool.

    2. From the Chart Type list, select Column.

    3. Click Finish.

    4. Drag the chart underneath the data and resize it appropriately so that it looks like Figure 8-15.

      Figure 8-15 Microsoft Excel Chart Based on OLAP Data

      Description of Figure 8-15 follows
      Description of "Figure 8-15 Microsoft Excel Chart Based on OLAP Data"

  32. Save your worksheet.

8.4 Related Documentation