# Module 13: Using Excel as an OLAP Client

Chia sẻ: Vu Trung | Ngày: | Loại File: PDF | Số trang:38

0
121
lượt xem
20

## Module 13: Using Excel as an OLAP Client

Mô tả tài liệu

Tham khảo tài liệu 'module 13: using excel as an olap client', công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả

Chủ đề:

Bình luận(0)

Lưu

## Nội dung Text: Module 13: Using Excel as an OLAP Client

1. Module 13: Using Excel as an OLAP Client Contents Overview 1 Office 2000 OLAP Components 2 Using Excel PivotTables 4 Using PivotCharts 11 Lab A: Creating PivotTables and PivotCharts 14 Working with Local Cubes 20 Creating OLAP-Enabled Web Pages 24 Lab B: Working with Local Cubes and Web Pages 26 Review 29
3. Module 13: Using Excel as an OLAP Client iii Instructor Notes Presentation: Microsoft® PivotTable® Service (PTS) is bundled with Microsoft Office 2000. 30 Minutes PTS works not only with Microsoft SQL Server™ 2000 Analysis Services, but also with data sources such as relational databases. Lab: 30 Minutes Microsoft Excel 2000, a major component of Office 2000, provides powerful online analytical processing (OLAP) functionality to developers and users. This module is an overview of Excel 2000 OLAP features. It gives students the opportunity to create and manipulate the various Office 2000 OLAP interfaces. After completing this module, students will be able to: Understand the various Microsoft Office 2000 OLAP features. ! Create a PivotTable from an OLAP cube. ! Create PivotCharts. ! Create local cube files. ! Create a Web page containing Pivot Web components. ! Materials and Preparation This section lists the required materials and preparation tasks that you need to teach this module. Required Materials To teach this module, you need the following materials: Microsoft PowerPoint® file 2074A_13.ppt ! Preparation Tasks To prepare for this module, you should: Read all the student materials. ! Read the instructor notes and margin notes. ! Complete the demonstration. ! Practice integrating the demonstrations with the lecture. ! Complete the labs. ! Review the Trainer Preparation presentation for this module on the Trainer ! Materials compact disc. Review any relevant white papers that are located on the Trainer Materials ! compact disc. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
4. iv Module 13: Using Excel as an OLAP Client Demonstration: Creating a PivotTable The following demonstration procedures provide information that will not fit in Demonstration: the margin notes or is not appropriate for student notes. 10 Minutes In this demonstration, you will learn how to create a PivotTable that connects to OLAP cubes. ! To restore a new database and define a data source 1. In Analysis Manager, right-click the server, click Restore Database, click the Look in list, click the file C:\Moc\2074A\Labfiles\L13\Module 13.CAB, click Open, click Restore, and then click Close. 2. Double-click Module 13 to expand the database. 3. Below Module 13, double-click the Data Sources folder, right-click the Module 13 data source, and then click Edit. 4. Click the Connection tab of the Data Link Properties dialog box, and then verify that localhost is selected in step 1. 5. In step 2, verify that Use Windows NT Integrated security is selected. 6. In step 3, verify that Module 13 is selected. 7. Click Test Connection and verify that the test succeeded. Click OK twice. ! To define a data source 1. Click Start, point to Programs, and then click Microsoft Excel. 2. From the empty Excel worksheet, click the Data menu, and then click PivotTable and PivotChart Report. Step1 of the PivotTable and PivotChart Report Wizard appears. 3. From the Where is the data you want to analyze pane, click External data source, and then click Next. Step 2 of the wizard appears, which contains a button to specify the external data source. 4. Click Get Data. Microsoft Query starts and the Choose Data Source dialog box opens. 5. Click the OLAP Cubes tab and then click from the list. Click OK. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
5. Module 13: Using Excel as an OLAP Client v ! To define the cube 1. In the Create New Data Source dialog box, type Sales for the data source in entry 1. 2. For entry 2, click Microsoft OLE DB Provider for OLAP Services 8.0 from the list, and then click Connect The Multidimensional Connection dialog box appears. 3. Click the Analysis Server option, and type localhost in the Server box. Click Next. A list of databases defined on the Analysis Server displays. 4. From the database list, click the Module 13 database, and then click Finish. The Create New Data Source dialog box appears again. 5. For entry 4, click the Sales cube from the list. Click OK to close the dialog box. Note Creating an OLAP Cube data source creates a file in the Application Data\Microsoft\Queries folder for the current user. The location of the Application Data folder varies depending on the version of Microsoft Windows® you are using, and whether Windows is set up for multiple users. The file has the name you gave to the data source, with .oqy—for OLAP Query—as the extension, and is registered with the Microsoft Excel OLAP Query file type. Double-clicking the OLAP query data source file starts Excel and creates a new PivotTable report based on that data source. 6. The Choose Data Source dialog box appears again. Click OK. 7. Step 2 of the PivotTable Wizard appears again. Click Next and then click Finish. A skeletal PivotTable report appears on the worksheet, along with a PivotTable toolbar that displays all the dimensions and measures in the cube. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
6. vi Module 13: Using Excel as an OLAP Client Other Activities Difficult Questions Below are difficult questions that students may ask you during the delivery of this module and answers to the questions. These materials delve into subjects that are within the scope of the module but are not specifically addressed in the content of the student notes. 1. Can you export an Office PivotList back to an Excel PivotTable report? Yes. To do so, click the Export To Excel toolbar button. Interestingly, if you show only selected levels in a PivotTable list and then export that list to Excel, the resulting PivotTable report will include only the selected levels. 2. Can you update the subtotal labels in a PivotTable so that they match the total of only the visible cells? Unfortunately, you cannot make the subtotals match the total of only visible cells. However, you can turn off subtotals for dimensions. 3. What happens if the PivotTable toolbar becomes small and does not include all the dimensions and measures? Click the PivotTable in the worksheet. The toolbar should return to its original state. 4. How do you retrieve the PivotTable toolbar if you accidentally close it? Right-click the Excel toolbar, and click PivotTable from the list of possible toolbars. 5. Does an Office PivotList support events? If you write Microsoft Visual Basic® code and are familiar with creating event handlers to react to the behavior of users, you might be interested to know that an Office PivotList supports events for numerous user actions. In contrast, an Excel PivotTable report does not have any events. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
7. Module 13: Using Excel as an OLAP Client vii Module Strategy Use the following strategy to present this module: Office 2000 OLAP Components ! Begin by defining the Office 2000 OLAP components—PivotTable Services, Excel 2000 PivotTables, Office Pivot Web control, and local cubes—and describe how each component is used to access OLAP data. Using Excel PivotTables ! In this section, you show how to create, manipulate, and format a PivotTable based on an OLAP cube. Integrate your lecture with a demonstration. First, show how to define the data source. Next, show how to use the PivotTable toolbar and how to drill down and pivot in a PivotTable. Describe how to use various methods that enhance PivotTable reports, such as filtering and refreshing. Finish the section by describing various formatting options for PivotTables. Using PivotCharts ! Explain that Excel 2000 creates PivotChart® reports that are fully interactive and integrated with PivotTable reports. Emphasize that a PivotChart is always linked to a PivotTable. Describe the two methods of creating a PivotChart and integrate your lecture with a demonstration showing students how to create a PivotChart from an existing PivotTable report. Finish by describing some unique characteristics of PivotCharts. Working with Local Cubes ! Define local cubes as structurally complete OLAP cubes that reside on client computers. Compare and contrast local cubes and server-based cubes. Explain that you can create a local cube from either an OLAP source or a relational source. Combine your lecture with a demonstration showing how to create a local cube from an OLAP source. Creating OLAP Enabled-Web Pages ! Explain to students that Office 2000 makes it easy to create Web pages from Office documents. Describe and show how to create a Web page from a PivotTable report, combining the lecture and demonstration. Next, describe how to manipulate a PivotList—using the Field List, adding and removing items, and filtering and pivoting. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
8. Module 13: Using Excel as an OLAP Client 1 Overview Topic Objective To provide an overview of the module topics and Office 2000 OLAP Components objectives. ! Lead-in Using Excel PivotTables ! In this module, you will learn about the OLAP Using PivotCharts ! components available in Working with Local Cubes Office 2000. ! Creating OLAP-Enabled Web Pages ! Microsoft® PivotTable® Service (PTS) is bundled with Microsoft Office 2000. PTS works not only with Microsoft SQL Server™ 2000 Analysis Services, but also with other data sources, such as relational databases. Microsoft Excel 2000, a major component of Office 2000, provides powerful online analytical processing (OLAP) functionality to developers and users. This module is an overview of Excel 2000 OLAP features. It gives you the opportunity to create and manipulate the various Office 2000 OLAP interfaces. After completing this module, you will be able to: Understand the various Office 2000 OLAP features. ! Create a PivotTable from an OLAP cube. ! Create PivotCharts. ! Create local cube files. ! Create a Web page containing Pivot Web components. ! BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
9. 2 Module 13: Using Excel as an OLAP Client Office 2000 OLAP Components Topic Objective To introduce the various Office 2000 OLAP PivotTable Service components. ! Lead-in Excel 2000 PivotTables ! These are the Office 2000 OLAP components that are Office Pivot Web Control ! discussed in this module. Local Cubes ! Excel 2000 PivotTables are the focus of this module. Other important OLAP Delivery Tips features exist, however, in Office 2000. This module reviews the various OLAP Briefly describe each of the components of Office 2000. components and define how they are used to access PivotTable Service OLAP data. PivotTable Service (PTS) is the mandatory client component for querying Except for PTS, do not go Analysis Server. into detail, because each component is covered later While PTS is a component of Analysis Services, it is also bundled with Office in the module. 2000. PTS places OLAP functionality on every Office 2000 desktop, regardless of whether users have access to an Analysis Server. PTS has no built-in user interface. It is an invisible component that provides OLAP functionality to Excel 2000, third-party applications, and custom applications. PTS provides the OLE DB for OLAP and Microsoft ActiveX® Data Objects (Multidimensional) (ADO MD) object interface. Because PTS communicates with relational databases, PTS provides OLAP functionality for organizations that do not use Analysis Server. Tip You do not need to install PTS on every client computer. To provide OLAP capability in a thin-client environment that does not require much memory usage on client computers, you can install PTS on another computer that acts as a middle tier and provides OLAP access for the client computers. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
10. Module 13: Using Excel as an OLAP Client 3 Excel 2000 PivotTables In Excel 2000, PivotTables are Analysis Server-aware and, more precisely, OLE DB for OLAP-aware. As a result, you use PivotTables to analyze large data sets, unlike earlier versions of Excel. Note An Excel PivotTable is not the same object as PivotTable Service (PTS). However, Excel uses PTS when manipulating PivotTables. PivotTables provide basic OLAP functionality to Excel users. They provide an intuitive interface that allows slice and dice functionality—pivoting, drill-down, drill-up, and so on. In addition, charts are now OLAP-aware and provide OLAP functionality with direct manipulation of the chart. In order to create PivotTables based on external data from OLAP or relational databases, you must install Microsoft Query. Query is not installed by default as part of the Office 2000 installation. You must specify it explicitly during setup. Office Pivot Web Control Several ActiveX components are bundled with Office 2000 and are designed for use on Web pages, Microsoft Visual Basic® forms, and other ActiveX containers. One of the ActiveX components is the Pivot Web control. The pivot component functions similarly to an Excel PivotTable. In this module, you will learn how to create a Web page that includes the pivot component. Local Cubes PTS supports the ability to create local cubes derived from an Analysis Server or from a relational source. This feature is available to users in two forms: Excel 2000 contains an interface for defining local cubes that is covered in ! this module. Local cubes can be created programmatically. ! BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY
11. 4 Module 13: Using Excel as an OLAP Client # Using Excel PivotTables Topic Objective To introduce the concept of PivotTables. Defining a Data Source ! Lead-in In this section, you learn Interacting with a PivotTable ! how to create, manipulate, and format a PivotTable Working with PivotTables ! based on an Analysis Formatting PivotTables Server cube. ! In versions of Excel before version 2000, a PivotTable report used a memory- Delivery Tips cache method for providing values to the report. In this method, the PivotTable Present this entire section imported values from an Excel list or a database table, and stored the values in as an informal memory. When a user manipulated the PivotTable report, the report retrieved demonstration, integrating necessary values from the memory cache. your lecture from the slide- driven sections with a PivotTable reports have been an extremely popular feature of Excel, but the demonstration of building memory-cache method for retrieving values limited the amount of data that and manipulating a could be manipulated. PivotTable report from the Module 13 Sales cube. In Office 2000, Excel provides a second method for providing values to a PivotTable report—an OLAP cube. A PivotTable report can now communicate Encourage students to with the PivotTable Service to retrieve values from Analysis Server. follow you on their computers. In the following In this section, you learn how to create, manipulate, and format a PivotTable lab, students are asked to based on an Analysis Server cube. build a PivotTable report by using the wizard. BETA MATERIALS FOR MICROSOFT CERTIFIED TRAINER PREPARATION PURPOSES ONLY