Академический Документы
Профессиональный Документы
Культура Документы
Copyright
No part of the computer software or this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from Business Objects S.A. The information in this document is subject to change without notice. If you find any problems with this documentation, please report them to Business Objects S.A. in writing at documentation@businessobjects.com. Business Objects S.A. does not warrant that this document is error free. Copyright Business Objects S.A. 2003. All rights reserved. Printed in France.
Trademarks
The Business Objects logo, WebIntelligence, BusinessQuery, the Business Objects tagline, BusinessObjects, BusinessObjects Broadcast Agent, Rapid Mart, Set Analyzer, Personal Trainer, and Rapid Deployment Template are trademarks or registered trademarks of Business Objects S.A. in the United States and/or other countries. Contains IBM Runtime Environment for AIX(R), Java(TM) 2 Technology Edition Runtime Modules (c) Copyright IBM Corporation 1999, 2000. All Rights Reserved. This product includes code licensed from RSA Security, Inc. Some portions licensed from IBM are available at http://oss.software.ibm.com/icu4j. All other company, product, or brand names mentioned herein, may be the trademarks of their respective owners.
Use restrictions
This software and documentation is commercial computer software under Federal Acquisition regulations, and is provided only under the Restricted Rights of the Federal Acquisition Regulations applicable to commercial computer software provided at private expense. The use, duplication, or disclosure by the U.S. Government is subject to restrictions set forth in subdivision (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at 252.2277013. U.S. Patent Numbers 5,555,403, 6,247,008, and 6,578,027. 358-10-610-01
Contents
Examples Preface Maximizing Your Information Resources 7 9 Information resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Useful addresses at a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 About this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Chapter 1 Introducing BusinessObjects OLAP Connect 17
What You can Do with BusinessObjects OLAP Connect . . . . . . . . . . . . . . . 19 How BusinessObjects Integrates with BusinessObjects OLAP Connect . . . 20 Accessing MS OLAP Services or SAP BW . . . . . . . . . . . . . . . . . . . . . . . . . 25 Chapter 2 Getting Started 27
Connecting to the Data Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Defining the Data for a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Changing the Report Data Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Changing the Report Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Changing the Display of the List of Values in InfoView . . . . . . . . . . . . . . . . 79 Setting the Connection Strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Getting Information About the Report Data . . . . . . . . . . . . . . . . . . . . . . . . . 82 Saving a Report Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Formatting the Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Refreshing the Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Including Different Queries in One Report . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Contents
Chapter 3
89
Adding and Removing Dimension Members . . . . . . . . . . . . . . . . . . . . . . . . 91 Nesting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Using Filters to Focus Your Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Sorts and Ranks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Chapter 4 Performing Time Series Analysis 131
Performing Periods to Date Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Editing a Time Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Performing Opening Period Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Performing Closing Period Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Performing Parallel Period Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Performing Last Period Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Combining Time Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 Chapter 5 Working with OLAP Calculations 149
Creating Calculated Members . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 Common Business Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Using Common Business Calculations with Dimensions . . . . . . . . . . . . . 158 Business Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 Distinct Counts and Basket Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 Custom Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Editing and Deleting Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Calculation of Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Standard BusinessObjects Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Contents
Chapter 6
177
Filter Prompts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 SAP Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 Drill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 Formatting the Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 Distributing the Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Index 209
Contents
Contents
Examples
Chapter 2 Getting Started 27 What was the amount of merchandise sold in California over the past three years? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 What are the quarter 1 figures for 1999? . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Create a sales report for fiscal 2001 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Create a report that uses default members and multiple hierarchies . . . . . . 70 Fine-Tuning Your Data Selection 89 What are the 2001 sales for trousers in Texas? . . . . . . . . . . . . . . . . . . . . . 92 What are the 2001 sales for just city trousers in Texas? . . . . . . . . . . . . . . . 94 What are the profit margins by product for the northeastern stores? . . . . . . 97 Which products have retail sales that are greater than $150,000? . . . . . . 100 In which stores did sales revenue in the first quarter exceed sales revenue in the second quarter? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 In which stores did sales revenue in the first quarter exceed sales revenue in the second quarter AND have a sales margin over $800,000? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Creating a list that contains ALL products with pants in the product name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 What are unit sales for the 50% top selling cardigans? . . . . . . . . . . . . . . . 123 Performing Time Series Analysis 131 What were the store sales by product categories for the year to date to November 2001? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 What were the store sales by product family for the opening month of the year 2001? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 What were the store sales by product families for the closing month of the year 2001? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 What was the amount of sales by category for the parallel period of May 2001, one period away, at the quarter level? . . . . . . . . . . . . . . . . . . . 143 What were the amount of sales by category for the last three months of 2000? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Chapter 3
Chapter 4
Examples
Chapter 5
Working with OLAP Calculations What was the average profit margin per product in the accessories line in the year 2000? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . What was the change in profit margin between 1999 and 2000? . . . . . . . What were the total amount of sales and profit margin for California and Texas? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . What are the 2001 quarterly sales averages for Florida stores? . . . . . . . . How many raincoats did we sell in the first quarter? . . . . . . . . . . . . . . . . . Which stores sold jeans and party pants? . . . . . . . . . . . . . . . . . . . . . . . . . What is the year 2000 overhead for the DC store? . . . . . . . . . . . . . . . . . . Creating an Interactive Document Creating a prompt on the Product dimension. . . . . . . . . . . . . . . . . . . . . . . What are product line sales in California by year, quarter, and month? . . What are quarterly product line sales by category? . . . . . . . . . . . . . . . . .
149 153 156 158 161 164 167 170 177 179 200 206
Chapter 6
Examples
preface
10
Overview
Information, services, and solutions
The Business Objects business intelligence solution is supported by thousands of pages of documentation, available from the products, on the Internet, on CD, and by extensive online help systems and multimedia. Packed with in-depth technical information, business examples, and advice on troubleshooting and best practices, this comprehensive documentation set provides concrete solutions to your business problems. Business Objects also offers a complete range of support and services to help maximize the return on your business intelligence investment. See in the following sections how Business Objects can help you plan for and successfully meet your specific technical support, education, and consulting requirements.
11
Information resources
Whatever your Business Objects profile, we can help you quickly access the documentation and other information you need.
Where do I start?
Below are a few suggested starting points; there is a summary of useful web addresses on page 14. Documentation Roadmap The Documentation Roadmap references all Business Objects guides and multimedia, and lets you see at a glance what information is available, from where, and in what format. View or download the Business Objects Documentation Roadmap at www.businessobjects.com/services/documentation.htm Documentation from the products You can access electronic documentation at any time from the product you are using. Online help, multimedia, and guides in Adobe PDF format are available from the product Help menus. Documentation on the web The full electronic documentation set is available to customers with a valid maintenance agreement on the Online Customer Support (OCS) website at www.businessobjects.com/services/support.htm Buy printed documentation You can order printed documentation through your local sales office, or from the online Business Objects Documentation Supply Store at www.businessobjects.com/services/documentation.htm Search the Documentation CD Search across the entire documentation set on the Business Objects Documentation CD shipped with our products. This CD brings together the full set of documentation, plus tips, tricks, multimedia tutorials, and demo materials. Order the Documentation CD online, from the Business Objects Documentation Supply Store, or from your local sales office.
Information resources
12
Multimedia Are you new to Business Objects? Are you upgrading from a previous release or expanding, for example, from our desktop to our web solution? Try one of our multimedia quick tours or Getting Started tutorials. All are available via the Online Customer Support (OCS) website or on the Documentation CD.
If your issue concerns a Business Objects product and not the documentation, please contact our Customer Support experts. For information about Customer Support visit: www.businessobjects.com/services/support.htm
13
Services
A global network of Business Objects technology experts provides customer support, education, and consulting to ensure maximum business intelligence benefit to your business.
Services
14
Content
Overview of Business Objects documentation. Links to Online Customer Support, Documentation Supply Store, Documentation Roadmap, Tips & Tricks, Documentation mailbox.
Business Objects product information Information about the full range of Business Objects products. www.businessobjects.com Developer Suite Online www.techsupport.businessobjects.com Knowledge Base (KB) www.techsupport.businessobjects.com Available to customers with a valid maintenance agreement and a Developer Suite license via the Online Customer Support (OCS) website. Provides all the documentation, latest samples, kits and tips. Technical articles, documents, case resolutions. Also, use the Knowledge Exchange to learn what challenges other users both customers and employees face and what strategies they find to address complex issues. From the Knowledge Base, click the Knowledge Exchange link. Practical business-focused examples.
15
Content
Starting point for answering questions, resolving issues. Information about registering with Worldwide Customer Support. The range of Business Objects training options and modules.
Business Objects Consulting Services Information on how Business Objects can help maximize your business intelligence investment. www.businessobjects.com/services/ consulting.htm
16
Audience
This guide is intended for the person who uses BusinessObjects OLAP Connect to perform reporting and analysis using BusinessObjects.
$DIRECTORYPATHNAME The path to a directory in the Business Objects installation/configuration directory structure. For example: $INSTALLDIR refers to the Business Objects installation directory. $LOCDATADIR refers to a subdirectory of the BusinessObjects installation directory called locData.
chapter
18
Overview
This chapter describes: how BusinessObjects integrates with BusinessObjects OLAP Connect key features of the BusinessObjects environment for BusinessObjects OLAP Connect how to access Microsoft SQL Server OLAP Services (MS OLAP Services) and SAP Business Information Warehouse (SAP BW)
19
20
21
22
Description In a multidimensional data structure, dimensions such as Geography are typically set up as hierarchies. Within the hierarchy there are levels. In a Geography dimension, typical levels from higher to lower are continent, country, state, city, and postal code. The data values for an upper level of the hierarchy, such as country, are calculated by aggregating the data values for the lower levels. By including the dimension members at the highest level of detail you want, you set up your analysis so that you can then drill down to view and display the appropriate level of information in the BusinessObjects report. You can perform sorts and ranks directly against the data source before bringing your data selection into the report. Using sorts, you can order the information in a way that will increase the ease and speed of your on-report analysis. Using ranks, you can focus on the data selection that most impacts your business strategy, such as a your highest or lowest customer sales figures. You can use the integrated tools in BusinessObjects to continue your analysis.
23
Create a layout for A reports layout dictates the way the data in the report is your report displayed. A report can consist of one or more large blocks of data, for example in tables, crosstabs, or charts. Most reports consist of large blocks that contain smaller blocks of data. Build on an existing report You can: add tables, crosstabs, and charts to existing reports change tables into crosstabs, crosstabs into charts, charts into tables pivot data in tables, crosstabs, and charts, enabling you to display previously undisplayed data, or move or remove data. Pivoting also enables you to build crosstabs and 3-D matrix charts from tables and 2-D charts respectively manipulate columns, rows, and cells You can: apply breaks in tables and crosstabs use sorts to control the order in which data appears use ranking to view the top and bottom values in a range of data make calculations on report data, either inside a table or a crosstab
Slice and dice data The slice-and-dice mode enables you to: switch the position of data in a report move data from columns to rows rename, reset, and delete blocks turn tables and crosstabs into charts, and vice versa apply, edit, and delete breaks, sorts, ranking, and calculations
24
You can...
Description
Format reports for You can: a specific look resize and position blocks and cells apply shading and borders to sections, blocks, and cells format the cells, chart elements, or data use page headers, footers, and margins display page numbers, dates, and times Print your reports You can convert your documents to HTML and place them or publish them on on a Web server so that people with a Web browser can the Web access them. For further information about using BusinessObjects and the Web, refer to the InfoView Users Guide. Send and receive documents to and from other users Schedule document tasks You can exchange documents with other users by electronic mail or through a document repository created by the BusinessObjects supervisor at your company. You can have tasks on your documents carried out at specified times or intervals, enabling work to be done on your documents while you are away from your computer.
25
To access BusinessObjects OLAP Connect: 1. Select Others 2. From the drop-down menu select OLAP Connect
26
b c d
a. Dimension button. Each dimension button represents a dimension of the multidimensional data structure. You use the buttons to select the members of each dimension you want to analyze in the BusinessObjects report. b. The filter axis. The selected dimension members on the filter axis filter the values of measures displayed in the report. c. The Measures dimension. Measures, called Key figures or Structure in SAP BW, generate the values in the report and are created within the multidimensional data structure. If you dont select a particular measure for your report, a default measure will appear.) d. The dimension drop zone. The selected members or levels of dimensions you drag into the dimension drop zone will be displayed in the rows and columns of the report. e. Clear button. Clears the dimension drop zone of all dimensions, filters, and data values. f. Options button. Sets the report layout preferences. g. Save and Close button. Saves the query and closes the OLAP Panel. h. OK button. Generates a BusinessObjects report. i. Cancel button. Closes the OLAP Panel and cancels any action you have made. j. Help button. Opens the contextual online help for BusinessObjects OLAP Connect.
Further information For more information about dimensions, dimension members, hierarchies, hierarchy levels, and measures refer to Chapter 2 of this guide, Getting Started.
Getting Started
chapter
28
Overview
This chapter guides you through the process of creating a BusinessObjects report from data stored on Microsoft SQL Server OLAP Services (MS OLAP Services) and SAP Business Information Warehouse (SAP BW) OLAP servers. It explains how to: connect to MS OLAP Services, including local .cub files, and SAP BW servers select the data you need to generate a BusinessObjects report
Getting Started
29
Launch BusinessObjects
First, you have to launch BusinessObjects. To do this: 1. Click BusinessObjects, then Reporter in the Start, Programs menu. What happens next depends on how BusinessObjects has been set up in your company: If BusinessObjects opens directly, then 2. go to the next section Launch BusinessObjects OLAP Connect. 2. enter your user name and password, choose your security domain, if applicable, and click OK. The user name, password, and security domain are assigned by your BusinessObjects supervisor or system administrator. The User Identification dialog box closes and the BusinessObjects window opens. 3. go to the next section Launch BusinessObjects OLAP Connect.
30
Getting Started
31
When you create a BusinessObjects report, you can choose whether you want to generate a standard report or a report with special layout and formatting. To do this: 1. Select the type of report you want to generate: If then
you want to generate a standard select Generate a standard report. BusinessObjects report, you want to apply a special layout and format to the report, select Select a template. For further information on selecting a template and applying a special layout to a report, see the BusinessObjects Users Guide: Reporting Techniques and Formatting and Getting Started with BusinessObjects.
3. Click Others and select OLAP Connect from the drop-down list. Depending on your BusinessObjects license key, you may have access to MS OLAP Services or SAP BW, or some combination of these. If you have access to MS OLAP Services, you can also access multidimensional data files in .cub file format. If you do not have access to the data provider you need, contact your system administrator.
32
4. Click Finish. What you see next depends on whether you have access to Microsoft SQL Server OLAP Services or SAP BW. If you have access to more than one data provider then the OLAP Server Name dialog box appears. To finish connecting to the database, go to Step 5.
have access to Microsoft the Database Locations dialog box appears. OLAP Services or a .cub file, To finish connecting to the database, go to Step 6. have access to SAP BW, the Connections Parameters dialog box appears. To finish connecting to the database, go to Step 8.
5. If you have access to more than one data provider, select the one you need in order to connect to the data source you want to analyze.
NOTE
Getting Started
33
6. If you are connecting to MS OLAP Services or a local .cub file, the Database Locations dialog box appears.
Depending where the data is stored, you can connect to a server machine on a company network, your local server, or a .cub file. To connect to a server on the network of your company or to your local server, a .cub file, you need to type the name of the server machine. For example, if you want to access the Sales database which is on the server called KIPLING, type KIPLING. If necessary, contact your system administrator for the name of the server running the database you need. check Cube File and click Browse to select the .cub file containing the data you want. To follow the examples in this guide, connect to the efashion.cub demonstration file provided with BusinessObjects OLAP Connect. The default location at installation is: C:\Program Files\Business Objects\BusinessObjects Enterprise 6\demo\databases 7. Click Next. To finish connecting to your data source, go to Step 9.
34
8. If you are connecting to SAP BW, the Connection Parameters dialog box appears. This is where you connect to the server machine running the database you want to access for your report. If you are connecting to SAP BW for the first time, see the section "SAP BW Connection Considerations" on page 40.
enter the name of the server description name here the language box displays the default language code for English
In the Server box, type the name of the server description name for the SAP BW database that appears in the saplogon.ini file. The Client ID box displays the default ID for SAP BW. The language box displays the default language. Contact your system administrator for your SAP BW client ID and application language code if they are not the same as the default. Click Next. The Customize Connection Information dialog box appears. To finish connecting to your data source, go to Step 9.
Getting Started
35
9. Enter a name in the Name text box that defines your data source. A meaningful name helps you to select the correct data source connection each time you use BusinessObjects OLAP Connect to create a report. This is important if you plan to create connections to more than one data source.
You can use, for example, the name of the server or data provider, for example, MS OLAP Services, SAP BW, or the name of the .cub file itself. 10. In the Description text box, enter a description of data you are using. This is optional.
36
11. Click Finish. The Select Connection dialog box appears with the connection you created.
This is where you choose which database you want to access each time you create a new BusinessObjects report using BusinessObjects OLAP Connect.
NOTE
You can also use the Select Connection dialog box to edit or delete existing connections. 12. Select the connection. 13. Click: Next if you have a server connection. Continue on to Step 14. or Finish if you are using a .cub file. The OLAP Panel opens and you are now ready to select data to create your report.
Getting Started
37
TIP To modify the keyword and description of a data source, click Edit in the Select Connection dialog box and then Next repeatedly until the Customize Connection Information dialog box appears. Make any modifications here, then click Finish. The new information appears in the Select Connection dialog box.
14. Depending on your data source, one of the following occurs: If you are accessing MS OLAP Services, then the Select Cube to Open dialog box appears, displaying the databases available on the server. You are ready to select the OLAP cube from which you will select data for your report. See Step 16 below. you need to enter your SAP BW login before you select an OLAP infocube. The SAP BW login dialog box appears See Step 15 below. 15. Enter your username and password for access to SAP BW. Click Next
SAP BW,
38
The Select Cube to Open dialog box appears, displaying the databases and cubes available on the server.
when a data cube is selected, the Cube Summary panel displays the date the cube was last updated
NOTE
If you are connected to an SAP BW server, the Select Cube to Open dialog box includes the Show Technical Names check box. Unchecked by default, Show Technical Names allows you to view the technical names of the SAP BW infoqueries. Technical names are the internal keys by which SAP BW identifies individual infoqueries. This is useful for users who are familiar with the structure of the database and the keys assigned to each infoquery. By default, the infoqueries display the meaningful descriptions given to them by the database administrator.
Getting Started
39
16. Select the OLAP cube by clicking the + sign to the left of a database icon and selecting the cube filename, then click Finish. Your computer connects to the data cube you selected. When the connection is made, the OLAP Panel appears.
You are ready to make your data selection and create a report.
40
SAP BW Connection Considerations When you are setting up a connection to a SAP BW server, you must make sure that the server name you specify is exactly the same as the appropriate SAP connection description. SAP connections are set up using the SAPLogon tool provided by SAP. Assuming that you have defined connections to three servers, BOB, BOS and BWT, the SAP Logon dialog box lists them in the Description list box.
If you click on Properties, you see further details of the highlighted connection.
It is the system description (in this case, BOB) that you enter when setting up a connection to SAP BW in BusinessObjects, not the name of the server (in this case TINOS). Note that the system description is case-sensitive: Bob is not the same system as BOB.
Getting Started
41
42
zone, it will appear in your report. However, you can also set up filters on dimensions without moving them from the filter axis. As a result you can filter your report without filling it with unnecessary information.
the dimension buttons display the label of each dimension in the data cube the filter axis displays the dimensions and members that filter the values in the report the dimension drop zone the dimensions you drag here will appear in the report
Measures (for MS OLAP Services) or Key figures or Structure (for SAP BW)
Getting Started
43
The OLAP Panel and the dimension properties dialog box make extensive use of popup menus. To access these menus on the OLAP Panel, right-click on a dimension button or the Measures button. You will use these menus frequently as you work with the OLAP Panel.
If you generate a report without making a data selection, the measure displayed in the report will be the default measure, Margin in the efashion.cub, set up by your database administrator. The values of the measure will be those for the default level of data in each dimension (typically the All level). When you build a report, however, you have a specific business question in mind. You make a selection from the available dimensions in the OLAP Panel to build a report that answers your particular business needs, and then generate the BusinessObjects report.
EXAMPLE What was the amount of merchandise sold in California over the past three years?
1. Drag the Store dimension into the dimension drop zone. The dimension properties dialog box for Store appears. 2. In the Members tab click on the + next to All. 3. Double-click on California to add it to the Report list, then click OK to return to the OLAP Panel. 4. Drag the Time dimension into the dimension drop zone. The dimension properties dialog box for Time appears.
44
5. In the Members tab select 1999, 2000, and 2001 and add them to the Report list, then click OK to return to the OLAP Panel. 6. Double-click the Measures button. The dimension properties dialog box for Measures appears. 7. Double-click the Quantity measure to add it to the Report list. 8. Click OK to return to the OLAP Panel. 9. Click OK to generate the BusinessObjects report. A report appears showing the quantity sold for the last three years in California. Further information You can choose from a list of options to define the way the OLAP Panel behaves and how the queries you perform will be executed. For more information see Setting your user preferences on page 48. How you select the data you want for the report You make your data selection by choosing specific members or levels from the different dimensions of the OLAP cube. If you want to display the values of dimension members in the report, you drag the dimension button into the dimension drop zone. For example, if you want to display the names of different geographical regions on a column in your report, you drag the Store dimension into the dimension drop zone, and then select the member regions you want to analyze. When you leave a dimension button on the filter axis, the members or levels you selected affect the values that appear on your report. Their values will not be visible in the actual crosstab or chart, but they still filter the measure values the
Getting Started
45
report displays. This allows you to report data for a more specific set of members without exploding your report with multiple rows and columns.
the filter axis displays the Time dimension, and the Store dimension, filtered by the member California the dimension drop zone displays selected members from the Product dimension and the measure Amount
the BusinessObjects report displays the Product line members and the Amount measure. The values in the Amount column are for total sales earnings in California for the past three years by product line
46
How you refer to the data you select The OLAP Panel uses standard multidimensional data terms that you will need to know when you select data from the OLAP cube to build a report. The commonly used terms are listed below: OLAP Term Dimension Description A structural attribute of a cube made up of hierarchical levels containing individual members. A dimension offers a business view of your corporate data. The members of any one dimension are of a similar type in the users perception of the data. For example, months, quarters, and years, make up the Time dimension in the efashion.cub. An item in a dimension representing one or more occurrences of data. Members are usually the same items that appear in data-entry forms, sales, catalogs, and other places where data is presented, collected, and reported upon in your day-to-day business. Examples include a SKU in a product line, a specific color code, or a month of a specific year. An arrangement of members of a dimension into levels where each level represents the aggregated total of the data from the level below. Members in a hierarchy are arranged from the more general to the more specific; for example, Year, Quarter, Month. An element of a dimension hierarchy. Levels describe the dimension order from the highest (most summarized) level to the lowest (most detailed) level of data. Each level above the base level represents the aggregated total of the data from the level below. The numeric data of primary interest to cube users, such as sales or cost data and other key performance indicators of your business.
Member
Hierarchy
Level
Measure
Getting Started
47
How data is organized on the dimensions of the data cube Data is organized on each dimension by hierarchical levels. The graphical interface of BusinessObjects OLAP Connect displays the hierarchies of each dimension like a family tree. When you build a BusinessObjects report, you can quickly select a member, and then specify its family relationship. For example, if in the Store dimension you select the member California, you can then select its children. This will give you all the members on the level immediately below California on the Store dimension. Choosing the children of California selects all the cities and stores within the state of California for which there is data in the OLAP cube. Selecting data by family relationship helps you to build maintenance free reports. For example, if on the Store dimension you select the children of the member Houston, the report will automatically include data on new stores in Houston as they are added to the data cube. The following diagram shows how family terms are used in practice. The cube outline below, illustrates the family relationship of dimension members in the dimension Store. The member selected is Texas.
Texas Children = Austin, Dallas, Houston Siblings = Colorado, New York, ... Parent = All Descendants = Houston and e-Fashion Houston, Dallas, Austin, and all of their children Ancestors = All and any higher levels
48
The table below, lists all the family terms used to describe the members of a dimension: OLAP Term Child Siblings Parent Descendants Ancestors Lowest Member Description A member one level below the selected member that is designated as its parent. Members at the same level who have the same parent. The member that is one level above the selected member and that uses the selected member to obtain part of its value. All members at all levels below the selected member. All members at all levels above the selected member. This automatically selects the members in the lowest level in a dimension.
Getting Started
49
For MS OLAP Services The Options dialog box for MS OLAP Services looks like this:
It allows you to do the following: If you want the dimension properties dialog box to appear automatically when you drag an empty dimension from the filter axis into the dimension drop zone, then select the option Pop up the Dimension Properties dialog box (for empty dimensions) after a drag/drop operation. This option is selected by default. If you unselect this option, you need to double-click the dimension button in order to open the dimension properties dialog box.
dimensions for which there Suppress missing or erroneous data from the is no data to be excluded results of the query. from the report, For example, if you are generating a sales report and your data cube has no sales data for the city Houston, then your report will not include a row for Houston. When this option is unchecked, your report will display empty rows for dimensions containing no data.
50
For SAP BW The Options dialog box for SAP BW includes the options for MS OLAP Services described above (see For MS OLAP Services on page 49) and three additional options:
These options allow SAP BW users to choose how they want to view the names of dimension members in the dimension properties dialog box: If you want to view then select the option
both the key code and the description of dimension Code and Description members, only the description of dimension members, only the key code for dimension members, Description Code
The screenshot below illustrates how the member codes and descriptions are displayed in the dimension properties dialog box for SAP BW data sources. This example shows members of the Calendar year/quarter dimension. The option Code and Description is selected in the Options dialog box.
code description
Getting Started
51
1. Drag the Time dimension button into the dimension drop zone. If your OLAP Panel preferences are set to popup the dimension properties dialog box automatically, it appears now by default. If not, double-click the dimension button to open it. To set your preferences, click Options and check Pop up the Dimension Properties dialog box (for empty dimensions) after a drag/drop operation. 2. Click the Members tab. The Members tab displays dimension members hierarchically by parent/child relationship. Member icon
52
3. Click the + button next to All, then 1999, and double-click 1 to add it to the Report list. The selected member appears in the Report list.
the Report list displays the data you select to build the report
this indicates the number of child members beneath the selected member
NOTE
If you are connected to SAP BW, you can opt to view members by their key code and/or description. See Setting your user preferences on page 48. Named Sets A Named Set is a group created by the cube administrator that allows you to select a set of dimension members of particular interest. For example, you may want to create a report including all merchandise related to a theme, such as the Olympic Games, or all merchandise with a specific holiday theme, such as Christmas or Easter.
NOTE
The Named Set feature is only available for MS OLAP Services. If the dimension you are browsing contains Named Sets, they appear under the heading Named Sets at the bottom of the list of sets. You add the set to the
Getting Started
53
Report list by highlighting it and clicking Add just as you would for any other member that appears in the list.
named set
Selecting data by level Viewing data by level is useful when you are dealing with very large databases and want to include all dimension members at a specific level of data detail; for example, all quarters in the Time dimension or all states in the Store dimension. To select members of a dimension level and add them to your report: 1. Drag the dimension button into the dimension drop zone. The dimension properties dialog box appears. If it does not, double-click the dimension button. 2. Click the Levels tab. The Levels tab displays dimension members hierarchically by level name. When you select a level, you automatically select all its members; for example, if you select Quarter, you include all quarters of all years stored on the OLAP cube.
Level Icon
54
4. Click Add. Members on level Quarter appears in the Report list. On both the Members and Levels tab, if you select an item that contains more than 1000 child items, BusinessObjects displays a warning before it starts to retrieve the members. If you decide that you still want to retrieve the members, click Yes; if not, click No.
Getting Started
55
While BusinessObjects is retrieving a large quantity of members, it displays its progress graphically using a progress bar. If you decide that you do not wish to continue retrieving the members, click Cancel .
Select data by family relationship Selecting by family relationship allows you to build maintenance-free reports that will automatically include new child members as they are added to the OLAP cube in the future. If you select descendants of a member, you include all the members below that member. If you select ancestors of a member, you include all the members above that member. There are two ways of selecting dimension members using family terms: In the dimension properties dialog box, select a dimension member, then click the Add drop-down arrow and select a family relation.
click the arrow to select children of Accessories in the dimension properties dialog box
56
or Select a dimension member and add it to the Report list, then double-click (or right-click and select Family from the popup menu).
Select the family member(s) you want for your analysis here. Click OK to add the member to the Report list.
Getting Started
57
Using the Family Relationship dialog box The following table describes the different ways of selecting members in the Family Relationship dialog box. Option This member only Include this member Description Selects the selected member only. Includes the selected member in the members. This check box is available only if Children, Siblings, Parent, Descendents, Ancestors, First sibling, Last sibling, or Offset is selected. Selects members one level below the selected member that have the selected member as their parent. Selects members at the same level that have the same parent as the selected member (excluding the selected member). Selects the Member that is one level above the selected member and that uses the selected member to obtain part of its value. Selects all members at all levels below the selected member. Selects all members at all levels above the selected member. Selects the first child of the selected members parent member. Selects the last child of the selected members parent member. Selects a specific sibling of the selected member, which is identified by the offset number. To select a sibling that is n places before the selected member, enter a positive offset. To select a sibling that is n places after the selected member; enter a negative offset. For example, entering an offset of 3 will select the sibling 3 members back from the selected member.
Children
Siblings
Parent
58
Description Selects all members at the same level as the selected member. Similar to siblings except that it includes child members of all the members at the same level as the selected members parent. Selects all the members in the same dimension as the selected member. Selects all members at the lowest level of the selected members dimension. Selects the top member of the selected members dimension.
Getting Started
59
you can drag this border to resize the child members list
You can then use your mouse to drag the left border of the child members list until the list is the width you require.
60
Working with the children of the selected item Once you have checked the Show List in Cube box, you can work with the list of children using the right mouse button menu. To do this, right-click on the list of children.
You can work with the list of child members in various ways using this menu. Option Select Select all Filter List... Sort List Delete Description Adds the currently selected child member to the report. Adds all of the child members to the report. Allows you to filter the list of child members. Sorts the list in ascending alphabetical order. Deletes the currently selected member (if allowed).
Getting Started
61
Filtering the child members list The Filter List option lets you narrow down the amount of items shown. You can filter the list multiple times. For example, you can filter the list for those items containing the string Leather Belt, then filter the result list by another string. You can continue filtering until you have reduced the list to the items you require. 1. Select Filter List from the menu. The Filter Member List dialog box appears.
2. Type the name of the child to be included in the filter. 3. Click OK. The list will be restricted to the those items containing the string you entered. In this example, the list will be reduced to all items containing the string Leather Belt.
NOTE
The filter is not case sensitive. In the above example, the strings Leather Belt and LEATHER BELT return the same result.
62
You are a sales manager for the US division of efashion Corporation. You want to create a report that shows store sales by product family for the fiscal year 2001. Using the BusinessObjects OLAP Connect OLAP Panel, you are going to select the dimensions and measures necessary for your analysis. Step 1: Selecting the Product and Time dimension members 1. Drag the Product dimension button into the dimension drop zone.
Getting Started
63
You want to analyze store sales by product lines. The quickest way to do this is to select the dimension level called Lines, because this level includes all of the product family members: Accessories, City Skirts, and other product lines.
top level member of All next top level its members Accessories, City Skirts, and others members of Lines
the Report list displays the dimension members you select to build the report
64
3. Click OK to confirm your selection and to return to the OLAP Panel. The Product dimension button displays Members on level Lines.
the mouseover displays the complete labels of members and levels you select from a dimension
4. Drag the Time dimension button into the dimension drop zone. The dimension properties dialog box appears. You want to display 2001 sales results by quarter in the report. In the data .cub file, 2001 is a member of the All dimension. 5. In the Member Selection tab, click the + icon next to All to view the outline of the hierarchies in the dimension, and select 2001. 6. To see which members of the dimension are included in your data selection, click the Show list in Cube check box. The dimension properties window lists all selected members. Quarters 1, 2, 3, and 4 are children of the year 2001.
Getting Started
65
7. Click the Add drop-down button. The popup menu lists the family relations.
8. Select Children from the list of options. Children of 2001 appears in the Report list.
9. Click OK to return to the OLAP Panel. The Time dimension button displays Children of 2001.
66
Step 2: Selecting the Store Sales measure You want to analyze sales at the Texas retail outlets. The measure that calculates retail sales is called Amount in the efashion.cub file. To select the measure for your report: 1. Double-click the Measures button. (Note: If you are using SAP BW, this is the Structures button.) The dimension properties dialog box appears.
The dialog box displays the measures set up on the database. 2. Select the Amount measure, then double-click, or click the Add button, or drag and drop the measure to the Report list. 3. Click OK to return to the OLAP Panel. The Measures button displays Amount.
Getting Started
67
The report displays values for store sales per line in Quarters 1, 2, 3, and 4 of 2001. You can now continue your analysis in BusinessObjects, format the report (creating charts and crosstabs), and refresh the document to update it with the most recent data in the OLAP server.
68
This option is available only when a dimension has multiple hierarchies. The efashion.cub file does not contain multiple hierarchies, so the following examples are simulated.
Getting Started
69
The Store button properties dialog box opens to the Choose Hierarchy tab.
There are three different hierarchies, or paths, through the store dimension. 2. Select the Geography hierarchy. A store dimension button appears with the current hierarchy after the dimension name in the OLAP Panel.
this button represents the geography hierarchy within the Store dimension
70
3. Drag the Store Geography dimension button to the dimension drop zone. The dimension properties dialog shows the Geography hierarchy. 4. If, instead of choosing a hierarchy in the Choose Hierarchy tab, you select Create separate Dimension Button from each hierarchy in the Store button properties dialog box, the OLAP Panel now displays a separate button for each hierarchy within the dimension.
NOTE
The Create separate Dimension Button from each hierarchy option is only available with MS OLAP Services. Working with default members The OLAP administrator can define a member as the default member for a dimension. If you drag a dimension to the dimension drop zone but do not select a member, BusinessObjects will place the default member in the report.
EXAMPLE Create a report that uses default members and multiple hierarchies
Note: The efashion.cub does not support this example. 1. Drag a dimension to the dimension drop zone, but do not select a hierarchy member from the dimension properties dialog box. 2. Right-click over the button and select Choose/Split Hierarchy.
Getting Started
71
The label on the button now reads the dimension and hierarchy names. 4. Drag the button to the dimension drop zone and add the children of the dimension to the Report list.
72
The efashion.cub does not support the example in this section. To change a reports data source: 1. Click Data Manager. The Data Manager dialog box appears. 2. Select the Definition tab.
you use the browse button to change the reports data source
Getting Started
73
3. Click the browse button next to the cube name. The Data Provider Properties dialog box appears.
4. Click Browse.
74
5. Choose a different connection and cube as the data source for your report and click Finish. BusinessObjects processes the change of data source. If the new cubes data provider or structure is different, BusinessObjects displays an error message and the OK button on the Data Provider Properties dialog box remains disabled. 6. Click OK to dismiss the Data Provider Properties dialog box.
NOTE
You cannot change both the report data source and the Keep connection active for last processed data provider setting (see Setting the Connection Strategy on page 80) at the same time in the Data Provider Properties dialog box.
Getting Started
75
The efashion.cub does not support the example in this section. You can subsequently change the logon that you use to access the server. To change the login: 1. Click Data Manager. The Data Manager dialog box appears. 2. Select the Definition tab.
76
3. Click the browse button next to the database name. The Data Provider Properties dialog box appears.
The Change Login button is visible only when you are connected to SAP BW. The Change Connection Parameters dialog box appears.
5. Enter a new User Name and Password. 6. Click Test to test that the new User Name and Password are valid. 7. Click OK.
Getting Started
77
NOTE
You cannot change both the report login and the Keep connection active for last processed data provider setting (see Setting the Connection Strategy on page 80) at the time in the Data Provider Properties dialog box.
This option is only available for SAP BW. Report bursting is a Broadcast Agent feature that automatically generates reports for users. When a report is sent for report bursting, some users will see different subsets of data depending on their access privileges. For example, some users have fewer data access privileges than you and have will see only those subsets for which they have permission. To ensure that users reports are refreshed using their own user profile during report bursting, rather than with your profile: 1. Follow the procedure described in the section Changing the Report Login on page 75 to access the Change Connection Parameters dialog box. 2. In the dialog box, check the Use Recipients Business Objects User Name and Password for Report Bursting option. Any text in the User Name and Password boxes is cleared and it is no longer possible to type text in these boxes.
3. Click OK.
78
NOTE
For report bursting to succeed, there must be an account on the OLAP Server that has the same user name and password as the users BusinessObjects account. Further information For more information about Broadcast Agent, see the Broadcast Agent Administrators Guide.
Getting Started
79
4. Check Use alias in the list of values for InfoView. 5. Click OK.
NOTE
You need to run the query and publish to InfoView before this setting is activated in a report.
80
Getting Started
81
3. Click the browse button next to the database name. The Data Provider Properties dialog box appears.
4. Check the Keep Connection Active for Last Processed Data Provider option. 5. Click OK.
NOTE
You cannot change both the report data source and activate or deactivate the Keep Connection Active for Last Processed Data Provider option at the same time in the Data Provider Properties dialog box. When you check the Keep Connection Active for Last Processed Data Provider, the Browse button is disabled.
82
server
database
cube
Getting Started
83
Function Connection()
Argument DataProvider()
Returns For server connection: server provider; server name; database name; cube name For local cube file: server provider;.cub file path; cube name
OlapQueryDescription() SourceName()
DataProvider() DataProvider()
The table below shows formulas built using these functions in the example report created in the section Creating an initial report on page 62. Formula DataProvider(<Store Sales>) Connection(DataProvider(<Store Sales>)) Output OlapQuery1 in SALES2K Provider=MSOLAP;Data Source=C:\Local Cubes\efashion.cub;Initial Catalog=SALES2K Store Sales by Time Filter: Members sorted alphabetically in Ascending order, Grouped by Product Filter: Members sorted alphabetically in Ascending order, Filtered by USA C:\Local Cubes\efashion.cub / Sales2K
SourceName(DataProvider(<Store Sales>))
84
Save and Close saves the structure of a report, not the formatting. You should not format your report prior to saving its definition.
The next time you open the report you will need to run the query before you can refresh the data. Refreshing a report saved using Save and Close If you attempt to refresh the data in a report that was last saved using Save and Close before the query was run, BusinessObjects will remind you that you need to open the OLAP Panel and run the query before refreshing the data.
Getting Started
85
86
Refresh Data
Getting Started
87
88
Getting Started
chapter
90
Overview
This chapter shows you how to use the OLAP Panel in BusinessObjects OLAP Connect to fine-tune the data in your report. Once you have seen initial results, you can extract specific information from the data, and exclude data that is of little interest. You can bring in data, and organize it in such a way that key information is easy to recognize. This chapter describes the methods of fine-tuning the initial data, such as: Adding and removing dimension members Adding and changing the values that appear in the report. Nesting dimensions Adding additional levels of information to a dimension. Using filters to focus your analysis Restricting dimension members that appear in the BusinessObjects report to those that relate to the purpose of the report. Using sorts and ranks Organizing the information you want displayed in your report based on your selected criterion, such as an alphabetic listing or by the database hierarchy. Using attributes Retrieving data that satisfies a specific criterion, such as yearly income above a certain level.
91
92
3. Then: Add data In the Members/Levels tab select the member(s) or level(s) you want to add, and then do one of the following: drag and drop the selected members or levels to the Report list double-click the selected members or levels click Add right-click the selected members or levels and click Select on the popup menu Remove data In the Report list select the member(s) or level(s) you want to remove, and then do one of the following: press the Del key right-click the selected members or levels and click Delete on the popup menu
4. Click OK to return to the OLAP Panel, then OK again to regenerate the report. Removing a dimension level or member from the report You can filter a report using undisplayed values. This allows you to use several dimension members without filling your report with unnecessary rows and columns.
EXAMPLE What are the 2001 sales for trousers in Texas?
You do not need to display the values Texas or 2001 even while filtering the values for measures displayed in the report by the year 2001 and the state of Texas. 1. In the OLAP Panel drag the Product dimension on to the dimension drop zone. 2. In the dimension properties dialog box, add Trousers and City Trousers to the Report list, then click OK to return to the OLAP Panel. 3. Drag the Store dimension to the dimension drop zone. 4. In the dimension properties dialog box, add Texas to the Report list, then click OK to return to the OLAP Panel. 5. Drag the Time dimension to the dimension drop zone.
93
6. In the dimension properties dialog box, add 2001 to the Report list, then click OK to return to the OLAP Panel.
7. Select the Time dimension button and drag it up to the filter axis.
94
8. Drag the Store dimension button and drag it up to the filter axis. 9. Double-click on Measures and select Margin. 10. Click OK to return to the OLAP Panel, then OK again to generate the report. The values of measures in the report are filtered by the selected dimension members, but the values no longer appear in the report.
This example continues from the previous example. 1. Click Edit Data Provider. The OLAP Panel appears. 2. Double-click the Product dimension in the dimension drop zone. The dimension properties dialog box appears. 3. In the Report list right-click on Trousers. 4. Select Exclude from the popup menu.
95
5. Click OK to return to the OLAP Panel. When you regenerate the report, the member you excluded will not appear in the report.
TIP To include a member in the report again, double-click the dimension button on the OLAP Panel to open the dimension properties dialog box. Select the member in the Report list, then select Include from the popup menu.
New Query start with a blank query. Resets the OLAP Panel, cancelling Move the dimensions to original axis all filters and members you and erase all properties. selected. Move the dimensions to the original axis, but leave its properties. Clears the rows/columns that display values for dimensions in the report, but retains the filters and members you selected in the filter axis. The values for measures displayed in the report are still filtered by the members you selected. 3. Check the option you want, then click OK.
96
you do not want the updated select Leave the current report as it is. data to be displayed in the The format of the table in the report will not current report, change. The new data is still available. You can view it in a table, a crosstab, or a chart when you want. you want the updated data to select Display the new data in a new report. The be displayed in the current new data will be displayed in a new report tab in report, the new format.
97
Nesting
You can nest dimensions in your report to provide a further breakdown of data and refine the values of measures in the report. You do this by selecting members from more than one dimension and setting up nested columns in the report.
For this example, create a report that displays the children of the Product lines. The report and OLAP Panel should look like this:
Nesting
98
You need to display the values for Store on the report, only for the northeastern stores, and nest this breakdown within the different product lines already displayed on the report: 1. Click Edit Data Provider in the Standard toolbar to open the OLAP Panel. 2. Drag the dimension button Store onto the dimension drop zone. The dimension properties dialog box opens. 3. In the Members tab select DC. 4. Click the Add drop-down button and select Children from the popup menu.
5. Repeat this action for Massachusetts and New York. 6. Click OK to return to the OLAP Panel.
when you place the mouse over the dimension button, the list of criteria you chose for this dimension appears
99
If a report contains two or more blocks, the Modified Data Provider dialog box appears.
Check Display the data in a new report and click OK. This creates a new report tab in your document with the new data selection. 8. Select the values within the Lines column of the Product Family, NOT from the column header, and click Insert Break in the Report toolbar.
Insert Break
The report table displays the breakdown of sales margin by product line for the stores located in the northeast.
Nesting
100
Filtering by value
Filtering by value allows you to reduce or select the members in the report based on the result of an arithmetic expression evaluation. These expressions generally take two forms: Comparing a cell value of a measure against a user-defined value (i.e., 10000), for example by filtering out sales on products where the amount is less than $10,000. Comparing one measure against another, for example filtering where actual sales exceeds budget sales. Creating a user-defined value filter User-defined value filters are useful when the measure you are analyzing corresponds to a particular value.
EXAMPLE Which products have retail sales that are greater than $150,000?
In this example you will create a filter on the Product dimension using the value 150000, the greater than operator, and the measure Amount. To do this: 1. Drag the Product dimension into the dimension drop zone. The dimension properties dialog box appears. 2. Add Children of All to the Report list.
101
NOTE
You can go directly to the Filters tab of the dimension properties dialog box by right-clicking the dimension button and selecting Add/Change Filters from the menu. 4. Click New Value. The Value Filter tab appears. 5. From the Left Side drop-down menu, select Amount.
The box above the Left Side drop-down menu shows the filter expression you have built thus far. 6. From the Operation drop-down menu, select Greater Than. 7. In the Amount box, type 500000.
102
8. Click OK. The filter is displayed in the dimension properties filters list.
9. Click OK to return to the OLAP Panel. The filter icon appears on the dimension button. If you hold your mouse over the button, you see the filter description along with other information about the dimension.
10. Double-click the Measures button, select Amount, the measure you included in the calculation, and add it to the Report list. 11. Click OK to return to the OLAP Panel, then click OK to generate the report.
NOTE
Value filters can also be applied to dimensions on the filter axis. These members are not visible in the report, but they do filter the values of measures in the report.
103
The demonstration file efashion.cub does not contain data for this example. To create a filter that compares two measures: 1. Drag the dimension you want to analyze into the dimension drop zone. The dimension properties dialog box appears. 2. Select the dimension level or member you want to see in the report and add it to the Report list. 3. Select the Filters tab, then click New Value. 4. From the Left Side drop-down menu of measures, select the first measure. 5. From the Operation drop-down menu, select an operand. 6. Check Member, then from the drop-down menu of measures select the second measure. 7. Click OK to return to the dimension properties dialog box. The new filter is displayed. 8. Click OK to return to the OLAP Panel. The filter icon appears on the dimension button. 9. Double-click the measures button, select the two measures you included in the calculation, and add them to the Report list. 10. Click OK to return to the OLAP Panel, then click OK to generate the report.
104
1. Drag the dimension Store, into the dimension drop zone. The dimension properties dialog box appears. 2. Select the Levels tab, double-click on Store Name to add Members on level Store Name to add it to the Report list. 3. Select the Filters tab, then click New Value. 4. From the Left Side drop-down menu, select Margin.
105
6. Select Time and click Edit. The Choose a member from Time dialog box appears. This is where you select the member of the Time dimension that you want to use in the filter. 7. Select the member you need for your analysis, 1 in 2001. 8. Click OK. Your selection appears in the Choose Members dialog box.
106
9. Click OK to return to the Value Filter tab. 10. From the Operation drop-down menu, select Greater Than. The left side of the calculation is displayed: Margin (Time: 1) > 0. You need to select the right side of the calculation.
11. Check Member, then from the drop-down menu of measures select Margin. 12. Click Change Right. The Choose Members dialog box appears. 13. Select the dimension Time, then click Edit to select the time period you want to analyze, quarter 2 in 2001. 14. Click OK to add your selection to the Choose Member dialog box. 15. Click OK to return to the Value Filter tab. The new filter is displayed.
107
16. Click OK to return to the dimension properties dialog box. The filter appears in the Filters List.
17. Click OK. The OLAP Panel appears. The filter icon button Store. 18. Click OK to regenerate the report.
108
Combining filters
You can also combine filters. The functions of combined filters are: Operand And Or Merge
EXAMPLE In which stores did sales revenue in the first quarter exceed sales revenue in the second quarter AND have a sales margin over $800,000?
Function Filters dimension members that meet the criteria of both filters. Filters the dimension members that meet the criteria of one of the filters. Takes the output of the first filter as the input for the second filter.
This example continues from the previous example exercise. To create and, or, or merge filters: 1. Click Edit Data Provider to return to the OLAP Panel. 2. Double-click on the Store dimension. 3. In the Filters tab click New Value. 4. Create the filter Margin > 800000, then click OK.
109
5. In the Combined using section, check And, then click OK to return to the OLAP Panel. 6. Regenerate the report.
110
Specifying the order of combined filters When you select Merge, the order of the two filters is critical, since the second filter will act on the output of the first filter. You modify the order of filters by clicking the Up and Down buttons. Select a filter, then click the Up or Down button to alter the filters position in the list.
Further information For step-by-step instructions on setting up filters, see Using Filters to Focus Your Analysis on page 100.
111
use the Edit and Del buttons to edit and delete filters
To edit a filter: 1. Select the filter in the Filters List. 2. Click Edit. The Value Filter tab appears. 3. Change the filter definition. 4. Click OK to regenerate the report. To delete a filter: 1. Select the filter in the Filters List. 2. Click Del. 3. Click OK to regenerate the report.
112
To create a list filter using a string: 1. Drag Product into the dimension drop zone. The dimension properties dialog box appears. 2. Click the Levels tab and select Show list in Cube. The child members of each dimension level you select are displayed in the center panel. This allows you to verify if the level you select contains the members you want to filter
3. Select Categories. 4. Right-click the dimension and select Filter List from the popup menu. The Filter Member List dialog box appears.
113
6. Click OK. Now only the members with the string in their label appear in the list.
7. Right-click the list of filtered members in the center panel, and then click Select All to add them to the Report list. 8. Click OK to return to the OLAP Panel, then click OK to generate the report. 9. Return to the OLAP Panel to add other dimension members and filters to see how they affect the results.
114
Sorts
Sorts allow you to order information in your report by selecting any of the following criteria: If you select... Natural sort order Database structure sort Alphabetical sort Measure value sort the data is sorted... according to how you selected dimension members in the dimension properties dialog box. according to the dimension hierarchy defined in the database. alphabetically by member label. according to a measure value, such as unit sales.
The following section explains how to create a new sort. Creating a new sort You access the sort option from the dimension properties dialog box for the dimension upon which you want to base a sort. To do this: 1. Drag into the dimension drop zone the dimension on which you want to base your sort. The dimension properties dialog box appears. 2. Add the dimension members or levels you want to sort to the Report list, then select the Sort tab.
115
You are ready to select a sort option. The section below explains how to select a sort option and the function of each option. Natural sort order Natural sort order displays the data in the order that you selected dimension members in the dimension properties dialog box. This is useful when you need to set a custom order for your data analysis. To choose the natural sort order option: 1. In the dimension properties box, select the dimension members you want to sort, then select the Sort tab. The Sort tab appears. 2. Select Use natural sort order. 3. Click OK to return to the OLAP Panel, then click OK to generate the report. The members you selected will be sorted in the order you made your data selection.
116
Sort by database structure Sort by database structure displays the data in the order of the dimension hierarchies on the data cube. This is useful if you want to view data to see how the totals were aggregated by component parts. To choose the sort by database structure option: 1. In the dimension properties box, select the dimension members you want to sort, then select the Sort tab. The Sort tab appears. 2. Select Maintain original database hierarchy. 3. Click OK to return to the OLAP Panel, then click OK to generate the report. The members you selected will be sorted according to the dimension hierarchy defined in the database. Alphabetical sort Alphabetical sort displays the data according to name in alpha-ascending order. This is the sort order by default. To choose the alphabetical sort option: 1. In the dimension properties box, select the dimension members you want to sort, then select the Sort tab. The Sort tab appears. 2. Select Sort alphabetically by member labels. 3. Click OK to return to the OLAP Panel, then click OK to generate the report. The members you selected will be sorted alphabetically in ascending order.
TIP You can sort data in alpha-descending order once you have generated the BusinessObjects report. Select the column of data you wish to sort, then click the Sorts button arrow on the Report toolbar and select the descending sort button from the popup sorts toolbar.
117
Sort by measure value Sort by measure value displays data according to the value of a measure. For example, if you are analyzing the unit sales of product brands, you can sort the brand names by the unit sales of each brand, from the lowest unit sales value to the highest unit sales value. You can base your sort upon any of the measures in the data cube and on any calculated members you create using BusinessObjects OLAP Connect (see Creating Calculated Members on page 151). To sort by measure value: 1. In the dimension properties box, select a dimension member to which you want to apply a sort, then select the Sort tab. 2. Select Sort by measure value. 3. Select a measure value from the Sort by measure value drop-down menu.
The table below describes the available measure options for sorts and ranks. Select... <Current Measure> If you want to...
perform a sort or rank on the default measure in the (MS OLAP Services cube when the report displays only the default measure. only) <Default Measure> perform a sort or rank on the default measure in the (MS OLAP Services cube when the report displays the default measure and other measures. only) The default measure is the first non-calculated measure listed in the list of measures in the measure dimension Properties dialog box. a named measure build a report that displays several measures. If you create a calculated member (see Creating Calculated Members on page 151), the calculation you created will also appear in the list of measures available for sorts and ranks. 4. Click OK to return to the OLAP Panel, then click OK to generate the report.
118
Viewing sort details You can quickly view the details of a sort set up on a dimension. To do this: 1. Right-click the dimension button. The popup menu appears. 2. Select Display Summary. The properties window for the dimension appears. 3. Select the Sort tab. The tab displays details of the sort.
Ranks
Ranks select and order data according to the value of a measure. Ranks are typically used to focus analysis on successful or unsuccessful areas of your business; for example, top ten-selling products or three lowest-selling retail outlets. With BusinessObjects OLAP Connect you can create ranks on one or several dimensions. You can rank data according to any of the following criteria: Ranking Criteria Ranking by count Ranking by percentage Ranking to a cumulative sum Description ranks dimension members according to the value of a measure. ranks a selected percentage of child members, where the parent member equals 100%. selects and ranks dimension members, according to the value of a measure, until the cumulative sum of measure values equals a value you specify.
You can create ranks on dimension members you display in the report and on data for dimensions you leave in the filter axis of the OLAP Panel. When you do this, the rank filters the measure value displayed in the report, without displaying
119
the dimension members, and thus allows you to see report data for a more specific set of members. For example, you can display product line names by unit sales in the report, and filter the data in the report by creating a rank in the filter axis that returns data only for your top 5 retail outlets based upon their profit margins. Creating a new rank You access the rank options from the Filters tab in the dimension properties dialog box. To create a rank: 1. Drag into the dimension drop zone the dimension on which you want to base your rank. The dimension properties dialog box appears.
NOTE
If you dont want to display the dimension members you are ranking in the report, leave the dimension button on the filter axis and double-click the dimension to open the dimension properties box. 2. Select the dimension members and levels you want to analyze in your report, then select the Filters tab.
120
You are ready to select a rank option. The section below explains how to select a rank option and its function.
121
Rank by count Rank by count automatically selects and ranks your specified number of dimension members according to the value of a measure. For example, you can use rank by count to analyze your top 5 or bottom 5 selling products based on the measure for unit sales, or to analyze your 10 largest customer accounts based on the measure for sales revenue. To rank data by count: 1. In the dimension properties dialog box, select the dimension members you want to base your rank upon, then select the Filters tab. 2. Click New Rank. The Rank tab appears. 3. Select Count and enter a value equal to the number of data entries or table rows you want to analyze. For example, if you want to analyze ten of your product lines, enter 10. 4. Click the arrow next to the Top/Bottom drop-down menu to set your rank to either top or bottom values of the measure you are analyzing. 5. Click the arrow next to the Using measure drop-down menu to select the measure according to which you want rank your data. For a description of each measure option available for sorts and ranks, see the table above on page 117. 6. Click OK to return to the Filters tab. The new rank is displayed in the Filters list.
7. Click OK to return to the OLAP Panel, then double-click the Measures button to select the measures you want to display in the report. The dimension members on which you create a rank will be ranked according to the measure you selected in Step 4. Unless you want the measure you are basing your rank upon to display in the report, it is not necessary to select it here. For example, you can create a rank on the top 5 retail outlets according to the measure Quantity, and select the measure Amount to display in the report. The report will display the store sale amount but will only include data for the five stores with the largest profits.
122
8. Click OK to return to the OLAP Panel. 9. Select the other dimension members and filters you want to analyze in the report, then click OK to generate the report. The specified number of dimension members are displayed and ranked according to the value of the measure on which you based your rank. Rank by percentage Percentage rank automatically selects and ranks dimension members until the sum of the measure you are analyzing equals your specified percentage of the sum of the parent member. To create a rank by percentage: 1. In the dimension properties dialog box, select the dimension members upon which you want to base your rank, then select the Filters tab. 2. Click New Rank. The Rank tab appears. 3. Select Percent and enter a value equal to the percentage of data entries or table rows, compared to the parent member that you want to analyze. For example, if you want to analyze the top or bottom 10% of product sales by brand for the parent member Accessories, enter 10. 4. Click the arrow next to the Top/Bottom drop-down menu to set your rank to either top or bottom values of the measure you are analyzing. 5. Click the arrow next to the Using measure drop-down menu to select the measure according to which you want rank your data. For a description of each measure option available for sorts and ranks, see the table above on page 117. 6. Click OK to return to the Filters tab. The new rank is displayed in the Filters list. 7. Click OK to return to the OLAP Panel, then double-click the Measures button to select the measures you want to display in the report. 8. Click OK to return to the OLAP Panel. 9. Select the other dimension members and filters you want to analyze in the report, then click OK to generate the report. The report lists the ranked dimension members until the sum of the selected measure equals the percentage of the parent member that you specified.
123
EXAMPLE What are unit sales for the 50% top selling cardigans?
You want to analyze the cardigans that make up 50% of total unit sales of cardigans. In the data .cub file, data by cardigan is stored on the Product dimension under the parent member Sweaters; i.e., data for each cardigan is a child of Sweaters. To create the rank to answer your business question, you need to do the following: 1. In the OLAP Panel, drag the Product dimension into the dimension drop zone. The dimension properties dialog box appears. 2. Select the member Sweaters and add its Children to the Report list. 3. Select the Filters tab, then click New Rank. The Rank tab appears. 4. Select Percent, then enter the value 50%. 5. In the Top/Bottom drop-down menu, select Top. 6. From the Using measure drop-down menu, select Amount. 7. Click OK to return to the OLAP Panel, then double-click the Measures button and select the measure Amount. In addition to ranking and displaying the top 50% selling cardigans according to sales, the report will display the sales values. 8. Click OK to generate the report. The table rows in the report will list cardigans ranked by sales (from highest to lowest values) until the sum of sales displayed equals 50% of unit sales of Cardigans. Rank to a cumulative sum Rank to a cumulative sum lists data until the sum of the measure you base your rank upon reaches a value you specify. To create a rank to a cumulative sum: 1. In the dimension properties dialog box, select the dimension members you want to base your rank upon, then select the Filters tab. 2. Click New Rank. The Rank tab appears. 3. Select Cumulative Sum and enter a value equal to the number of data entries or table rows you want to analyze.
124
4. Click the arrow next to the Top/Bottom drop-down menu to set your rank to either top or bottom values of the measure you are analyzing. 5. Click the arrow next to the Using measure drop-down menu to select the measure according to which you want to rank your data. For a description of each measure option available for sorts and ranks, see the table above on page 117. 6. Click OK to return to the OLAP Panel, then double-click the Measures button to select the measures you want to display in the report. 7. Click OK to return to the OLAP Panel. 8. Select the other dimension members and filters you want to analyze in the report, then click OK to generate the report. The report lists the ranked dimension members until the sum of the selected measure equals the value you specified. Applying multiple or single ranks Every new rank you create is added to the list of filters in the Filter tab and will be applied to the BusinessObjects report. (For more information on how to combine filters including rank filters, see Combining filters on page 108.) To apply one rank only, delete the other ranks from the filters list before you generate the report. Editing and deleting ranks To edit or delete a rank, double-click the rank on the list of filters, then select the Edit or Delete button.
125
Attributes
Attributes are data about dimension members, for example color in the Product dimension, that provide valuable information for analysis. For example, including the attribute size in a report on clothing sales, allows you to analyze how the clothing size affects sales in a specific region. Unlike other dimension members, attributes cannot be aggregated. With BusinessObjects OLAP Connect, you can display attributes associated to dimension members. You can also select attributes to filter the dimension members displayed in the report. Filtering by attributes allows you to retrieve data that satisfies a specific criterion. For example, if yearly income is an attribute associated to the data in a customer dimension, you can build a report that analyzes only customers whose yearly income exceeds $150,000.
Displaying attributes
The choosing attributes allows you to display attributes of a dimension in the report.
NOTE
Local .cub files do not support attributes. To choose the attributes you want to display in your report: 1. In the OLAP Panel, drag a dimension into the dimension drop zone. The dimension properties dialog box appears. 2. To select the level of detail you need quickly, click the Members tab and then select the All level. 3. Click the Add drop-down button. A popup menu appears, displaying the family relations. To choose or filter attributes, you need to select the level of the dimension that has these attributes. This is commonly the lowest level. 4. Select Lowest Members, then click OK to return to the OLAP Panel. The dimension button displays the members you selected.
Attributes
126
5. Right-click the dimension button, then select Choose Attributes from the popup menu.
NOTE
If a dimension doesnt include attributes data, the Choose Attributes option is grayed out. Contact your database administrator for more information. The Attributes to Include dialog box appears. It lists the labels of attributes associated with the dimension. Now when you generate the report the attribute or attributes you have chosen will appear along with the dimension member.
NOTE
If you choose a dimension level other than the level at which the attributes are defined, the report will include columns for the attributes, but they will contain no data. 6. Select one or more attributes from the list, then click OK to return to the OLAP Panel.
127
Local .cub files do not support attributes. To create an attributes filter: 1. Drag the dimension that has the attributes you want to analyze into the dimension drop zone. The dimension properties dialog box appears. 2. Select the member or level you for which you want to filter attributes. The selected member(s) or level(s) appear in the Report list. 3. Select the Filters tab, then click New Attribute.
NOTE
If a dimension doesnt include attributes data, the New Attribute option is grayed out. Contact your database administrator for more information.
Attributes
128
The Attribute Filter tab appears. It displays the list of available attributes.
the list of attributes stored in the database for the selected dimension
4. Select the attribute(s) you want to filter. The available filter values are displayed in the Attribute Values panel.
129
5. Check the value you want to filter, and click OK. The value you selected is displayed in the Filters tab.
6. Click OK to confirm and return to the OLAP Panel. The filter icon appears on the Customers dimension button. 7. Select the other dimension members and levels you need for your analysis, then click OK to generate the report. To view the attributes in the report, follow the steps in the previous section Displaying attributes on page 125.
Attributes
130
chapter
132
Overview
NOTE
The time series analysis functions are not supported for SAP BW. The fundamental purpose of OLAP is to allow the analysis of data changes over time. BusinessObjects OLAP Connect provides time series analysis, which is valuable for financial reporting. It allows you to compare the results of equivalent fiscal periods easily. BusinessObjects OLAP Connect supports smart time series analysis, including rolling time periods and parallel time periods. The parallel time periods function allows you to report on a value, such as net income, for two parallel periods; for example, quarter 1 in 2000, with quarter 1 in 2001. BusinessObjects OLAP Connect provides the following time series options: Time Series Option Function Periods to date Allows you to request a range of members: Year to Date, Quarter to Date, Month to Date, and Week to Date. For example, all months or quarters in 2001 up to the third quarter in 2001. Selects the opening period of a member. For example, the first quarter or first month in 2000. Allows you to select a member by identifying its cousin from another period. For example, if you select June 2000, BusinessObjects can automatically provide the corresponding month from a previous year or quarter. Allows you to specify a set of members, at any level, from the current time backwards. For example, the last three months or the last three weeks. Selects the closing period of a member. For example, the last quarter or last month in 2001.
Last periods
Closing Period
The time periods you will use for time dimension analysis are: year, quarter, month, and week, depending on the hierarchies in the Time dimension of your data source.
133
You want to know how many items from the product categories you have sold up to November 2001. To create this report: 1. Drag the Product button to the dimension drop zone and add Categories from the Levels tab to the Report list, then click OK to return to the OLAP Panel. 2. Right-click the Measures button, select Choose Members from the popup menu or double-click on the Measures button. The dimension properties dialog box appears. 3. Add the Amount measure to the Report list, then click OK to return to the OLAP Panel. 4. Drag the Time button to the dimension drop zone. The dimension properties dialog box appears.
134
6. Select the Periods to Date radio button. 7. Select Year to Date from the Select periods from drop-down menu.
135
8. Click Change. The Choose a member from Time dialog box appears.
9. Expand the hierarchy to 2001, quarter 4, and double-click on November. The Create Time Periods dialog box appears with November selected. The Description box now shows Year-to-Date up to November.
136
11. Run the report. BusinessObjects creates a report showing amount of sales by Product Categories for January through November 2001.
By default the months are listed in alphabetic order. 12. Click Edit Data Provider to return to the OLAP Panel, right-click the Time button and select Choose Sort from the popup menu. The dimension properties dialog box appears with the Sort tab to the front.
13. Choose the Use natural sort order or Maintain original database hierarchy option to sort the months in the correct order. Click OK to return to the OLAP Panel and then OK to regenerate the report. The report is regenerated with the months in the proper sequence. 14. Format this report into a crosstab with the months in the columns for easier reading.
137
The Select a time period level dialog box appears. This dialog box shows all the levels that you can choose to perform your period to date analysis.
138
5. Select Year and click OK to return to the Create Time Periods dialog box. This is equivalent to selecting the Year To Date option. 6. Click Change. The Choose a member from Time dialog box appears. 7. Expand the hierarchy and select November of 2001. 8. Click OK to return to the Create Time Periods dialog box. The Description box shows Periods on Year up to November, which is equivalent to Year to Date to November in the previous example. 9. Click OK to return to the OLAP Panel. 10. Click OK to generate the report.
139
The popup menu appears. 3. Select Time Periods. The member detail dialog box appears. You can now change the time series definition using this dialog box. 4. Click OK to return to the dimension properties dialog box.
140
To create this report: 1. Drag the Product button to the dimension drop zone and select the Categories level. 2. Select Amount as the measure. 3. Drag the Time button to the dimension drop zone and select Time from the New button drop-down menu. The Create Time Periods dialog box appears.
141
4. Select the Opening Period radio button. The configuration of the dialog box changes to provide you with the controls to select an opening period.
5. Select Month from the Select the first member at level drop-down list.
6. Click Change. The Choose a member from Time dialog box appears. 7. Expand the hierarchy and select 2001 8. Click OK to return to the Create Time Periods dialog box. The description box reads Opening period of 2001 at the Month level. 9. Generate the report. The report shows product family store sales for January, which is the opening period of 2001 at the month level.
142
1. Drag the Product button to the dimension drop zone and select the Categories Level. 2. Select Amount as the measure. 3. Drag the Time button to the dimension drop zone and select Time from the New button drop-down menu. The Create Time Periods dialog box appears. 4. Select the Closing Period radio button. The configuration of the dialog box changes to provide you with the controls to select a closing period. 5. Select Month from the Select the First Member at Level drop-down list. 6. Click Change. The Choose a member from Time dialog box appears. 7. Expand the hierarchy and select 2001 8. Click OK to return to the Create Time Periods dialog box. 9. The description box reads Closing period of 2001 at the Month level. 10. Generate the report. The report shows amount of sales by category for December, which is the closing period of 2001 at the month level.
143
EXAMPLE What was the amount of sales by category for the parallel period of May 2001, one period away, at the quarter level?
To create this report: 1. Drag the Product button to the dimension drop zone and select the Categories Level. 2. Select Amount as the measure. 3. Drag the Time button to the dimension drop zone and select Time from the New button drop-down list. The Create Time Periods dialog box appears.
144
4. Select the Parallel Period radio button. The configuration of the dialog changes to provide you with the controls to select parallel periods.
6. Click Change. The Choose a member from Time dialog box appears. 7. Expand the 2001 hierarchy, select May. 8. Click OK to return to the Create Time Periods dialog box.
145
To select a cousin member further back in time, enter a positive number; to select a cousin member further forward in time, enter a negative number.
The description reads Parallel period of May, 1 Quarter away. 10. Click OK to return to the dimension properties dialog box. 11. Generate the report. The report shows amount of sales by category for February.
146
To create this report: 1. Drag the Product button to the dimension drop zone and select the Categories Level. 2. Select Amount as the measure. 3. Drag the Time button to the dimension drop zone and select Time from the New button drop-down list. The Create Time Periods dialog box appears. 4. Select the Last Periods radio button. The configuration of the dialog box changes to provide you with the controls to select last periods.
5. Click Change. The Choose a member from time dialog box appears.
147
6. Expand the 2000 hierarchy, select December and click OK to return to the Create Time Periods Dialog box. 7. Enter 3 in the Number of periods text box, then click inside the Description box. The Description box says Last 3 periods ending in December. 8. Click OK to return to the dimension properties dialog box. 9. Generate the report. BusinessObjects generates a report showing amount of sales by product category for October, November and December.
TIP When you first select the Last Period option, the selected member is the default member - note that the Member Description box first displays All (Default). If your OLAP administrator regularly updates the default member to track the most recent period, for example the most recent month, you can select this member to build a report that will, for example, always display the data for the last two months.
148
chapter
150
Overview
NOTE
BusinessObjects OLAP Connect calculations are not avaliable for SAP BW. BusinessObjects OLAP Connect allows you to easily create calculations. For example, if you want to see the difference between the second quarter and the first quarter, a calculation not available in the data cube, you can create the calculation you need using the Difference function on the quarter dimension members 1 and 2. The calculations, referred to as calculated members, are saved with the report. The following calculations are possible using BusinessObjects OLAP Connect: Type of Calculation Common Business Calculations Business Statistics Function Common business calculations, such as Total, Difference, % Difference, and Markup. Calculated members that display statistical information, such as Average, Min, Max, Median, and Count.
Distinct Count Calculation Members counted distinctly, for example, to provide (and Basket Analysis) an accurate count of unique customers. You can combine counts with basket analysis to calculate which customers purchased Product A and Product B. Custom Calculations Calculations using MDX statements.
After you have generated the BusinessObjects report, you can perform many calculations at the report level using the BusinessObjects standard calculation functions and formula editor. For information on calculations in BusinessObjects, refer to the BusinessObjects Users Guide: Accessing Data and Data Analysis.
151
152
3. Click Next. The wizard displays the list of available calculations by type.
NOTE
The Distinct Count Calculation is not available for local .cub files. 4. Select the type of calculation you want, then click Next. The following sections describe how to create calculations of each type.
153
The following example takes you step-by-step through the process of creating a business calculation, based on the demonstration file efashion.cub. This file is installed automatically with BusinessObjects OLAP Connect at: C:\Program Files\Business Objects\BusinessObjects Enterprise 6\demo\databases
EXAMPLE What was the average profit margin per product in the accessories line in the year 2000?
A typical business question requires calculating profit margins. In this example, the database already has the measures for margin. To calculate average profit margin per product, you need to calculate the difference. 1. In the OLAP Panel, double-click the Time dimension. The dimension properties dialog box appears. 2. Add the member 2000 to the Report list, then click OK to return to the OLAP Panel. 3. Drag the Product dimension into the dimension drop zone. The dimension properties dialog box appears.
154
4. In the Members tab, select Accessories, then click the Add drop-down button and select Children from the popup menu. Children of Accessories appears in the Report list. 5. Click OK to return to the OLAP Panel. Creating a profit margin calculation 1. Double-click the Measures button, then click New in the dimension properties dialog box and select Calc from the popup menu. The Calculated Member Wizard appears. 2. Click Next. The Select Calculation Type dialog box appears. 3. Select Common Business Calculations, then click Next. The Common Business Calculations dialog box appears.
This is where you select the measures and operand to build your calculation. 4. Type in the Name text box the name of the calculation exactly as you want the row heading to appear in the report; in this example, Average Profit Margin per Accessories Line. 5. Select Ratio from the available calculation options. Margin appears over Quantity in the calculation panel. Now you are going to select the measures you need for the calculation.
155
Combining database measures to build the calculated measure 1. Move the mouse over the default measure Quantity on the lower part of the calculation until the cursor becomes a hand and left-click to view a popup menu of available values.
the cursor becomes a pointing hand when you move the pointer over the measure
You can choose from the following: Click... Measure Default Measure Constant To... select the measure you want from the data source. insert the default measure of the cube. type in a numerical value.
2. Select Constant. 3. In the number entry box type 12, representing the 12 months of the year, then click OK. The calculation panel displays Margin over 12. 4. Click Finish to return to the dimension properties dialog box. The new calculation Average Profit Margin per Accessories Line appears in the Report list. To compare the calculated value with the values of the measure you used to build it, add the measure Margin to the Report list. This means that the overall profit margin for the product will be the final column in the report table. 5. Click OK, then generate the report.
156
Formatting calculation values to currency 1. To display the values in the report in a currency format, highlight and then right-click the Margin and Monthly Average Margin columns, and select Format Cell from the popup menu. The Cell Format dialog box appears. 2. In the Numbers tab, select currency and select the currency format you want. 3. Click OK. The values in the report display the currency format you selected.
1. Double-click the Time dimension in the filter axis. The dimension properties dialog box appears. 2. Click New, select Calc from the popup menu, then click Next. 3. Choose Common Business Calculations and click Next. 4. Type 1999/2000 Margin Difference in the Name text box.
5. Select % Difference. The Calculation panel shows 1999 minus 2000 divided by 1999. 6. Click Finish, then OK.
157
7. In the OLAP Panel drag the Store dimension to the dimension drop zone and add Children of All to the Report list. Click OK to return to the OLAP Panel. 8. Select the Measure Margin. Generate the report. 9. Rename the column named Margin to read 1999/2000 Margin Difference. 10. Format the column numbers as percentage.
158
1. Drag the Store dimension to the dimension drop zone. 2. In the dimension properties dialog box, click New, select Calc from the popup menu, and click Next. 3. Select Common Business Calculations, then click Next. 4. From the Common Business Calculations dialog box select Total.
159
6. Choose Texas and click OK. 7. Name the calculation CA and TX Total. 8. Click Finish to return to the dimension properties dialog box. CA and TX Total appears in the Report Members List. 9. Click OK to return to the OLAP Panel. 10. Double-click the Measures button and add Amount and Margin to the report. 11. Click OK to generate the report.
The report shows the total amount of sales and profit margin for California and Texas.
160
Business Statistics
BusinessObjects OLAP Connect includes the following common business statistics: Type of Calculation Aggregate Function Uses a default aggregation method set on the OLAP server by the database administrator on the selected members. The default is usually equivalent to Sum, but can also be Average or others. Takes the average of the selected members. Takes the smallest value of the selected members. Takes the largest value of the selected members. Calculates the median of selected members. Adds the selected members to obtain a total value. Calculates the variance between the selected members. Calculates the standard deviation for the selected members. Counts the number of selected members.
The following example takes you step-by-step through the process of creating a business statistic, based on the demonstration file efashion.cub. This .cub file is installed automatically with BusinessObjects OLAP Connect at: C:\Program Files\Business Objects\BusinessObjects Enterprise 6\demo\databases
161
EXAMPLE What are the 2001 quarterly sales averages for Florida stores?
A typical business need is working out average sales over a time period. In this example, you will calculate quarterly sales averages for Florida. 1. 2. 3. 4. Setting up the average calculation In the OLAP Panel, drag the dimension Time into the dimension drop zone. Click New in the dimension properties dialog box and select Calc. The Calculated Member Wizard appears Click Next. The Select Calculation Type dialog box appears. Check Business Statistics, then click Next. The Business Statistics dialog box appears.
5. Type the name of the calculation exactly as you want the row heading to appear in the report. For example, type Quarterly Average. 6. From the Statistic drop-down list, select Average. You need to select the members from the Time dimension, on which you are performing the average calculation.
Business Statistics
162
1. 2. 3. 4.
Including all quarters for 2001 in the average calculation Click Add, then Member to select the members of the Time dimension you need to include in your average calculation. Select the year 2001, then click OK. It appears in the Business Statistics dialog box. Click Family. The Family dialog box appears. Select Children, then click OK. Your selection, Children of 2001, appears in the Calculated Member Wizard.
5. Click Finish to return to the dimension properties dialog box. You also want to display the quarterly totals in the report. 6. Select quarters 1, 2, 3, and 4 from year 2001, and add them to the Report list. 7. Click OK to return to the OLAP Panel. Selecting Florida to filter the values in the report In this example, you are calculating the amount of sales for only the Florida store. You want to filter out all other stores. Since the only values will be for the Florida store, you do not need to display the name Florida in your table. 1. Double-click the Store dimension on the filter axis. The dimension properties dialog box appears. 2. Select the member Florida from the Store dimension and add it to the Report list. The values for amount of sales in the report will be filtered by Florida. You are selecting the state level, Florida. 3. Click OK to return to the OLAP Panel.
163
Selecting the measure Amount 1. Double-click the Measures dimension button and add the measure Amount to the Report list. 2. Click OK to return to the OLAP Panel, then click OK to generate the report.
The report shows the quarterly sales and sales average for Florida.
Business Statistics
164
Create a new count 1. In the OLAP Panel, drag the Product dimension into the dimension drop zone. The dimension properties dialog box opens. 2. Click New and select Calc to launch the Calculated Member Wizard. 3. Click Next to open the Select Calculation Type dialog box, and select Distinct Count Calculation. 4. Click Next. The Distinct Count and Basket Analysis dialog box appears. 5. In the Name box, type the name you want to give the calculation; in this example, Total raincoats sold. This name will appear in the row heading on the report. Uppercase and lowercase characters will display on the report exactly as you type them here. You are ready to select the dimension members you want to count. Select the data for Customers 1. Click Add, then select Member from the popup menu. The member selection panel appears. 2. Select the Levels tab. Click the + next to Lines, then Overcoats, and then double-click on Wet wear. The Distinct Count and Basket Analysis dialog box re-appears with Wet wear in the Members list box.
165
3. Click Family. Under the Dimension category select Members at lowest level. When you perform a distinct count, you need to select dimension members that are unique. If you are counting unique products, you will perform your count on product names, since names are unique. The product name is the lowest level of the Product dimension in the sample efashion.cub file. 4. Click OK. The Distinct Count and Basket Analysis dialog box reappears. The label of the dimension member or level you selected; Lowest detail members of All Wet wear, is displayed.
the lowest detail members of the Product dimension in this OLAP .cub file is the product name. Since names are unique they provide the distinct data necessary for a distinct count
166
5. Click Finish. The dimension properties dialog box appears. The new calculation Total Raincoats Sold appears in the Report list.
6. Click OK to return to the OLAP Panel, then click OK to generate the report.
NOTE
BusinessObjects OLAP Connect brings in the label of the default measure as a column heading for the column displaying the distinct count value. You can delete this column heading manually. Before generating the report, you can select additional members from other dimensions, for example, Time or Store, to refine your data selection.
NOTE
Do not select any measures when performing a distinct count analysis. By default BusinessObjects OLAP Connect uses the name of the measure you have chosen as the header for the column containing the distinct count. If you select n measures, BusinessObjects OLAP Connect will include n columns, one for each measure, but the figure in each column will be given by actual distinct count * number of measures chosen.
167
Performing basket analysis Combining basket analysis with distinct counts allows you to count how many unique customers bought a certain basket of products. You can create a basket with one or two products, using and or or. For example, you can ask Which stores in the first quarter sold the most jeans and party pants? You can also ask Which stores sold jeans or party pants? To analyze which customers bought both product A and product B, you need to select two dimension members from the Product dimension and add them to the basket tab.
EXAMPLE Which stores sold jeans and party pants?
1. In the OLAP Panel drag the Product dimension into the dimension drop zone. The dimension properties dialog box opens. 2. Click New and select Calc. 3. In the Select Calculation Type dialog box select Distinct Count Calculation. 4. Click Next. The Distinct Count and Basket Analysis dialog box appears. 5. In the Name text box type Total Jeans and Party Pants. 6. Click Add, then select Member. The member selection panel appears. 7. Select the Levels tab. 8. Click the + next to Lines, then Trousers. Select Jeans and Party Pants, then click OK. The Distinct Counts and Basket Analysis dialog box now displays the name you gave to the count and the label of the members you selected:
9. Return to the OLAP Panel, double-click on Product, and then double-click on Total Jeans and Party Pants in the Report list.
168
10. In the Distinct Count and Basket Analysis dialog box, click the Basket (optional) tab, then click Add. The Select member from cube dialog box appears.
11. To select Jeans, the first member, navigate the dimension Product down to the member Jeans (Product, All, Trousers). Double-click to select it. You can use either the Members or the Levels tab to navigate down through the hierarchies of the dimension. The Basket Analysis dialog box with Jeans listed. 12. To add a second product to your count, click Add. To analyze how many jeans and party pants, select the Product dimension member Party Pants, then click OK to add it to the basket. The Distinct Count and Basket Analysis dialog box displays the members or levels you selected.
TIP By default, the basket is set to And. To create an Or statement simply place the cursor on the and and click once to toggle to Or.
169
13. Click OK to return to the dimension properties dialog box, then OK to return to the OLAP Panel. The dimension button displays the name you gave your distinct count. 14. Select the other dimension members and filters you want to analyze in the report; such as Time or Store, to refine your data selection, then click OK to generate the report.
170
Custom Calculations
BusinessObjects OLAP Connect is a powerful MDX (Multidimensional Expression) generator that allows you to build extremely complex MDX statements without needing know MDX. Custom calculations are provided for advanced users who wish to create their own calculated members using MDX syntax. For additional information on MDX, refer to the OLAP Administrators Guide provided with your OLAP Server. Knowledge of MDX is required for more advanced calculations, but user interface options are available in OLAP Connect. To create a calculated member in the Custom Calculation dialog box, simply type the expression in the provided space. The buttons to the right of the expression provide the ability to insert member names, operands, and functions. To verify that the syntax of your calculated member is correct, press the Validate! button. BusinessObjects will run your MDX against the database to ensure that you have defined the calculated member properly.
EXAMPLE What is the year 2000 overhead for the DC store?
To create a report using a Custom Calculation: 1. Drag the Store dimension to the dimension drop zone. The dimension properties dialog box opens. 2. Add DC to the Report list. 3. Double-click the Measures button. 4. Click New, select Calc, then Next. 5. Select Custom from the Select Calculation Type dialog box, then click Next. The Custom Calculation dialog box appears.
you can use the buttons to help build your MDX expression
171
6. Click Member. The Choose a Member from Measures dialog box appears.
7. Select Amount and click OK. The MDX syntax identifying the Amount member appears in the Expression box.
9. Click Member and select the Margin measure from the Choose a Member from Measures dialog box, then click OK.
Custom Calculations
172
10. Enter the name of the Custom Calculation, DC Overhead, in the Name box.
11. Click Validate to test the validity of the MDX expression you have built. 12. Click Finish. The calculated member DC Overhead appears in the Report list. 13. Click OK to return to the OLAP Panel. 14. Double-click the Time dimension, select 2000, and click OK. 15. Click OK to generate the report.
NOTE
You do not need to use the buttons to build your MDX expression. You can type your MDX directly into the Expression box in the Custom Calculations dialog box, using any MDX functions supported by your OLAP server.
173
Editing a calculation
In the Report list, double-click the calculation or right-click, then select Calculation from the popup menu. The calculation dialog box opens. You can edit the members selected for the calculation, or edit the name of the calculation here.
Deleting a calculation
In the Report list, select the calculation, then click Delete or right-click, then select Delete from the popup menu.
174
Calculation of Values
The report displays all the data values associated with the dimensions and filters you selected in the OLAP Panel. By default, these values include the aggregate values or server values returned by the calculation engine of the Microsoft OLAP Services and SAP BW OLAP servers. You can make your own calculations in the report. To do so, you must specify the values you want by modifying the formula in the cell of a generated report.
175
176
chapter
178
Overview
In this chapter you will learn how to set up BusinessObjects reports to provide users interactive analysis on data from MS OLAP Services and SAP BW servers. The two methods described in this chapter are: Filter prompts, which allow individual users to view only the values relevant to their business needs in the report. Drilling, which allows you to distribute a summary report to users that includes scope for detailed analysis. From a summary table or chart, users can drill up, drill down, and drill across the dimensions and hierarchies behind the report and dynamically analyze the detailed information they need to answer their specific business questions. If you are connecting to SAP BW, your infocube can contain SAP variables which are similar to filter prompts, but defined on the server by the database administrator, rather than at the report level.
179
Filter Prompts
Filter prompts let users select the data they need to see in a report by dimension members and levels. For example, using BusinessObjects OLAP Connect you can create either a BusinessObjects report that includes data for all your retail outlets, or a report with a prompt that allows each user to specify the state or town for which they want to view data before they generate the report. This saves users from including large amounts of unnecessary data into the report and lets them concentrate on the data most appropriate to their business needs. In addition to the filter prompts created using BusinessObjects OLAP Connect, SAP BW infocubes can contain additional prompts defined at the server level. If you are using BusinessObjects OLAP Connect to access SAP BW and you connect to a infocube in which SAP variables are defined, BusinessObjects will present you with a prompt in which you will supply information to restrict the data retrieved from the infocube.
1. In the OLAP Panel, drag the Product dimension into the dimension drop zone. The dimension properties dialog box opens. 2. If you want for the prompt: to offer users the ability to view... then...
only specific members in the dimension select those members or levels or members on several levels in the now and add them to the Report dimension, list, before going to Step 3. any of the members in the dimension or go directly to Step 3. only one level in the dimension, In this example, select All members in dimension for All.
Filter Prompts
180
4. Select Enable prompt and type a prompt in the Prompt Message box.
The default prompt uses the label of the selected dimension; for example, if you are creating a prompt on the Product dimension, the default prompt is Product? You can type a customized prompt that reflects the data in the report; for example, Which brand? or Which accessory line? You are ready to select the scope of analysis you want available to users.
181
5. Depending on the prompt type you select, users will have the ability to view values for one or several dimension members every time they refresh the report: When you select... users can... A single member, select one member for which they want values in the report. Each time they refresh the report they can select a different member, for example, Belts or Hats, or Jewelry. select one or many members and view values for these members in one report, for example, Belts and Hats, and Jewelry.
Range of members, select a range of members and view values for these members in one report. Select the Prompt Type most appropriate for the needs of your users. Now you are ready to select the scope of values that users will be able to analyze when they refresh the report. For this example select A single member.
Filter Prompts
182
6. You can set up the prompt to provide users with any of the following scopes of analysis: If you select... users can... Current report members, generate a report with values for any of the dimension members and levels included in the data selection behind the report. Users cannot modify the data selection on which the report is built. You must select the data in the dimension properties dialog box before you click the Prompt tab (see Step 2). Members in a level, generate a report with values for any member on one level of the dimension. This restricts users analysis to a specific level of detail in a dimension. For example, in a geography dimension, users can analyze data for any state, but they cant view data for country or for town. All members in choose from among all members and levels of the dimension, dimension. This provides users with the flexibility to access any data in one dimension. For example, if the prompt is on a geography dimension, users can select from any of the countries, states, towns, or addresses stored in that dimension. For this example, select Current report members, then click OK to return to the OLAP Panel.
NOTE
If you had selected Members in a level, you then select the level you want from the Members of level drop-down list, before clicking OK to return to the OLAP Panel. 7. Select the other dimension members and measures you want to include in the report, and click OK to generate the report.
183
NOTE
The first time you refresh the report, the Prompt Values dialog box displays <Unspecified>.
Filter Prompts
184
2. Click the underlined value, then depending on the type of filter prompt set up on the report: You see Prompt? <value> or Prompt? <value, value> Prompt? <value> or Prompt? <value, value> Prompt? <value start> --> <value finish> Members in a specific level Step 5. Prompt type All current report members or Members in a specific level All members in a dimension Step 4. Go to Step 3.
3. If the prompt was set up with Possible Members set to All current report members or Members in a specific level, the list of available members appears.
Select the member(s) you want from the Report Values list, in this example, Non-Consumable, then click OK and go to Step 6. You can restrict the list of values by using the popup menu. See the section Working with a list of values in a prompt on page 186 for more details.
185
4. If the prompt was set up with Possible Members set to All members in a dimension, the properties dialog box for the dimension appears. If you see the Report panel, you can select more than one member.
this prompt is a single member prompt. Multiple member prompts also display the Report list, allowing you to select more than one member
Click the Members or Levels tab to select the member(s) or level(s) you want to analyze in the report, then click OK and go to Step 6. 5. If the prompt was set up to offer you a range of members, the Prompt Values dialog box looks like this:
You can choose a range of members for the report. Click the first underlined value and then select the first member you want in the range from the Report Values list. Click OK to return to the Prompt Values dialog box, then click the second underlined value to select the last member you want in the range. Click OK, then go to Step 6.
Filter Prompts
186
6. The Prompt Values dialog box appears. The member(s) you selected appear in the prompt field(s). 7. Click OK to generate the report. To regenerate the report with values for a different member, click Data Refresh in the standard toolbar or select Data Refresh in the Data menu.
187
2. Select the one of the following: Option Find... Description Selects the first value that corresponds to the search criteria you have entered. You can search for multiple strings by entering a comma-separated list and checking the Select All Matches option (see the table on page 188). Selects the next value that corresponds to the search criteria you have entered. Selects all values Clears all selected values Filters the list of values to those containing the string you specify Sorts the list in ascending alphabetical order
Using the Find Command The Find command is a powerful tool that allows you to search the list for values that match a character string. This is valuable when the list is large. The Find command searches the list from the currently selected member downward until it finds a match.
NOTE
The Find command is not available when the prompt type is All Members in a Dimension.
Filter Prompts
188
You can refine the search by selecting one or more of the following options: Option Match case Description Selects only those members that have the same uppercase and lowercase letters. This is known as a case-sensitive search. Omitting this option performs a case-insensitive search. Whole word only Selects only those members that match the search string entirely. Omitting this option performs a sub-string search, where only a portion of the member name need match the search text. Select all matches Used in conjunction with a comma-separated list, highlights all values that contain the strings in the list.
Text appears at Selects only those members that have the search text at the beginning beginning of their names. This has no effect when Whole word only is selected. Text appears at Selects only those members that have the search text at the end end of their names. This has no effect when Whole word only is selected.
189
To use the Find command: 1. Click Find on the popup menu. The Find Member dialog box appears.
2. Type the string you believe to be embedded in one or more values. 3. Click OK. The first value that contains the embedded string is highlighted.
TIP If you check Select all matches, Find highlights all values that contain the embedded string.
Filter Prompts
190
You can search for multiple strings using Find by separating the strings with commas and checking the Select All Matches option. Using the Find Next command To find more values that contain the embedded string: 1. Right-click the highlighted value. 2. Select Find Next from the popup menu. The next value that contains the embedded string is highlighted. Continue using Find Next to search through the list of values for more matches. Using the Filter Command To filter the list of values to those containing a particular string: 1. Right-click the list of values. The popup menu appears. 2. Select Filter List from the popup menu. The Filter Members List dialog box appears.
191
3. Type the string that you want to use to filter the list of values and click OK. The list of values is restricted to those containing the string you typed.
NOTE
Filter Prompts
192
SAP Variables
SAP BW has a feature called SAP variables. If you connect to a SAP BW infocube that contains SAP variables, BusinessObjects OLAP Connect will prompt you for values for these variables in exactly the same way as if you had defined prompts within BusinessObjects. When you connect to a infocube that contains SAP variables, the dimension properties dialog box does not contain a Prompt tab for any dimensions on which variables are defined. SAP variables can be both mandatory and optional. If a variable is mandatory, you must make a selection in the prompt in order to run the query. If the variable is optional, it is not necessary to restrict the data by specifying a value for the variable in the prompt. The prompt has the text Optional Variables at the top of the screen. Due to restrictions in Ole DB for OLAP (ODBO), the protocol that BusinessObjects OLAP Connect uses to connect to OLAP servers, BusinessObjects OLAP Connect does not support all types of SAP variables. You cannot connect to a SAP BW infocube containing SAP variables of types not supported by BusinessObjects OLAP Connect. If you attempt to do so BusinessObjects will display a message indicating that a connection is not possible:
The following sections describe the SAP variable types supported by BusinessObjects OLAP Connect.
NOTE
193
Characteristic Variables
There are three types of characteristic variable: Single, Multiple, and Interval. These behave in the same way as the equivalent prompts described in the table on page 181. If the infocube contains Single variables, you select a single value from a list of values. If the infocube contains Multiple variables, you select one or more values from a list of values. If the infocube contains Interval variables, you select the start and end values of a range. Single Characteristic Variables When you run a query on a infocube that contains Single variables, BusinessObjects prompts you to enter a single value.
filter prompt
SAP Variables
194
To choose a value for a Single characteristic variable: 1. Click on the prompt. The dimension values dialog box appears.
2. Select a value and click OK. The prompt dialog box shows the value you selected.
3. Click OK to run the report. When you run the report after selecting a value, BusinessObjects restricts the dimension data to the value you chose.
195
Multiple Characteristic Variables When you run a query on a infocube that contains Multiple variables, BusinessObjects prompts you to enter a value or values. In this example, the prompt is mandatory so you must enter a value or values. To choose a value or values for a Multiple characteristic prompt: 1. Click on the prompt.
The dimension value dialog box appears. 2. Choose a value or values and add them to the Report list.
3. Click OK to return to the OLAP Panel. 4. Click OK to run the report. When you run the report after selecting a value, BusinessObjects restricts the dimension data to the value you have chosen.
SAP Variables
196
Interval Characteristic Variables When you run a query on a infocube containing Interval variables, BusinessObjects prompts you to select the start and end values in a range.
To select the start and end values for the range: 1. Click on the start value prompt. The dimension values dialog box appears.
2. Choose a value and click OK. 3. Click on the end value prompt. The dimension values dialog box appears. 4. Choose a value and click OK. 5. Click OK to return to the OLAP Panel. 6. Click OK to run the report. BusinessObjects restricts the dimension data to the range of values you selected.
197
Hierarchy variables
Hierarchy variables are related to the multiple hierarchies described in the section Working with multiple hierarchies on page 68. If a infocube contains hierarchy variables, it means that some dimensions have more than one possible hierarchy. When you run the report, BusinessObjects prompts you to choose the active hierarchy before retrieving the report data.
To select the active hierarchy: 1. Click the prompt <Unspecified> in the Prompt Values dialog box. The Dimension hierarchies dialog box appears.
2. Select a hierarchy and click OK to return to the Prompt Values dialog box. 3. Click OK to return to run the report.
NOTE
When you refresh a report that contains SAP hierarchy variables, BusinessObjects uses the hierarchy you originally selected, rather than requiring you to select a hierarchy again.
SAP Variables
198
Formula variables
A SAP infocube can contain formulas for calculations and allows users to enter values for certain parts of the formula when they connect to the infocube. For example, a formula to calculate profit on an item needs to take the price of the item into account. If the price is stored as a formula variable, you have the option to enter different prices to compare the profits when you run the report. BusinessObjectsOLAP Connect supports SAP formula variables, which allow you to enter values into formulas. When you connect to a infocube that contains a formula variable, BusinessObjects OLAP Connect prompts you to supply a value for the formula.
To supply a formula for a formula variable, enter a value in the Numeric Value box and click OK. BusinessObjects OLAP Connect calculates the formula using the value you input when it retrieves the report data.
NOTE
BusinessObjects OLAP Connect supports two types of SAP formula variables, Price and Quota. See your SAP documentation for further details. From the BusinessObjects OLAP Connect perspective you enter a value in the prompt dialog box in exactly the same way for both types. When you refresh a report containing formula variables, BusinessObjects OLAP Connect uses the previous values that you entered rather than prompting you again to specify values for the variables.
199
reportlevel prompt
SAP Variables
200
Drill
Drilling enables users to explore and display the level of detail they want within the same report. For example, you can create a summary report that shows sales by year and product category. Then, using drill functionality, users can drill down to show sales by quarter or month. Users can also use a drill filter to select individual product categories, and then drill down as far as the SKU to analyze why sales of a particular product changed dramatically.
1. In BusinessObjects, select Create a New Report and connect to the OLAP data source. The OLAP Panel appears. 2. Drag the Time dimension into the dimension drop zone.
201
To view the members in a level, select a level and then select Show List in Cube. Its members are listed in the center pane. 4. Select Year, Quarter, and Month and add them to the Report list.
5. Click OK to return to the OLAP Panel. 6. Drag the dimension Product into the dimension drop zone. The dimension properties dialog box appears. 7. Click the Levels tab and add Lines to the Report list.
TIP You can select every level in a dimension and then quickly exclude one or more levels or members from the scope of analysis by using the exclude/include command. For more information, see Excluding a member from a selected dimension level on page 94.
8. Click OK to return to the OLAP Panel. 9. Add the measure Amount, then click OK to generate the report. The table rows and columns in the report display all the levels of data you included in your data selection.
Drill
202
Removing detailed data from the report You can remove the detail data at the report level and leave this information behind the report in the query. This means that users will start with a standard summary report and then be able to drill down to view the detailed information that concerns them most. To remove the detail data from the report: 1. In the table of the report, select the columns Quarter and Month. You have correctly selected a column when the cursor changes to a black arrow.
The cursor changes to a black arrow when a table column is correctly selected
2. To remove the data from the report columns and rows, you can either rightclick on the highlighted portion and select delete, or select delete in the Edit menu. Creating a crosstab To make your table easier to view, you can change the format into a crosstab by using Slice and Dice. To do this: 1. Select a value from the column you want to appear across the top, for example, the value 1999 in the Year column. 2. Click Slice and Dice. The Slice and Dice panel appears.
203
3. Select Year and drag it above the thin dotted line. The cursor changes to the Crosstab cursor and the message Moves Year and builds a crosstab appears in the status bar at the bottom left of the report window. 4. Release the mouse button. Click Apply, then close the Slice and Dice Panel.
Drill
204
Drill
Setting the drilling in the report 1. Select the table and click Drill on the Standard toolbar. If no part of the table was selected before you clicked the drill button, the cursor becomes a magnifying glass with a question mark next to it . If this happens click inside the table to analyze. BusinessObjects automatically creates a new report tab that is a copy of the original report. This report tab is where you perform your drill analysis. 2. Move the mouse over the column heading for year. The cursor changes to a magnifying glass with a cross. 3. Right-click to view the drill popup menu and then select the type of drill analysis you want to perform.
Year is the highest level of the Time dimension included in the report, so they cannot drill up. Users can drill down to values for quarters and months because the levels quarter and month are included in the report.
205
4. Select Drill By to view all the levels available for drill analysis.
NOTE
When you have drills on more than one dimension, the popup menu will list all of the available drill options. 5. Click More to view the dimension members in your report.
6. To view unit sales by quarter, select Quarter and click OK. The drill toolbar appears to show a drill filter on the year 2001 by quarter. 7. To drill down to Month, right-click the mouse over the quarter 1 column and select drill down. The report displays unit sales by Month.
Drill
206
To create a drill filter: 1. Follow the first three steps in the previous section, Setting the drilling in the report on page 204. 2. Click in the year column. 3. Right-click and select Set as Drill Filter from the drill popup menu. The drill toolbar appears with a filter on the dimension level. The report currently displays the amount of sales for in the year 1999.
For more information about using the Drill mode in BusinessObjects, see the BusinessObjects Users Guide: Accessing Data and Data Analysis.
207
208
209
Index
.cub files accessing 32 cube files see also sample .cub file calculations aggregate 160 average 150, 160, 161 basket analysis 150, 167, 168 business statistics 150 common business 150 constant, value 153 counts 150, 160, 164 custom (MDX) 150, 170 dialog box 154 difference 153 distinct counts 150, 160, 164 filtering members 106 markup 153 Max 160 Median 160 Min 160 on reports see on-report features percentage difference 153 profit margins 153 quick ratio 153 ratio 153 standard deviation 160 statistics 150 Sum 160 time series analysis 132 total 153 Variance 160 with a constant value 155 calculations on report data 174 charts see formatting reports child members list 59, 60 filter option 61 child, children definition 48 display child members 112 see also family choose/split hierarchy option 68
A
adding members 91 aggregate 46 see also calculations All level 43 alphabetical sorts see sorts ancestors definition 48 see also family attributes definition 90 choosing 125 dialog box 126, 127 displaying 125 filters 125, 127 average see calculations
B
basket analysis see calculations blocks 24 Broadcast Agent 208 Business Objects consulting services 13, 15 documentation 12 Documentation Supply Store 11 support services 13 training services 13, 15
C
caching the metadata 80 Calculated Member Wizard 151 calculating margins 153
Index
210
clear dimension drop zone 95 query properties 95 ranks, sorts 124 connecting to data cube 39 to data provider 25 to server machine 33 connection parameters SAP BW 34 connection strategy 80 Connection() 82 constant see calculations consultants Business Objects 13 counts see calculations cousin 132 create new report 30 crosstabs creating 202 example 203 see formatting reports cube hierarchies 47 cube files attributes 125, 127 changing the data source 72 connecting to 33, 37 custom calculations 150 custom level time periods 137 customer support 13
D
data automatic data add 47 refresh 86, 183 selecting 44 data access using the dialog box 31 MS OLAP Services 32 SAP BW 32
data provider connecting to 25 edit 91, 96 functions Connection() 82 DataProvider() 82 OlapQueryDescription() 82 SourceName() 82 supported 19 data selection modifying 91 data source keywords 35 DataProvider() 82 dates see formatting reports default measure 117 default members 70 demo materials 11 descendants definition 48 see also family Developer Suite 12, 14 difference see calculations dimension All level 43 default member 70 definition 46 filtering by member 21 nesting see nested columns selecting members 51 structure of 47 using dimension buttons 62 using prompts 179 dimension drop zone 42, 44, 62 dimensions multiple hierarchies 68 nested 97 display cube members 112 distinct counts see calculations document exchange 24, 208
Index
211
documentation CD 11 feedback on 12 on the web 11 printed, ordering 11 roadmap 11 search 11 Documentation Supply Store 11 drill command 204 definition 22 drill by 205 filters 200, 206 introduction 178 mode 206 popup menu 204 preparing reports 200, 202 set analysis scope 200 usage 199, 200 view available dimensions 205
E
education see training empty row suppression 49 exchange documents see document exchange exclude members 94
F
family ancestors 48 children 47 cousin 132 descendants 48 dialog box 56 lowest member 48 parent 48 see also hierarchy selecting members 55 sibling 48 using family terms 47, 48
family relationship dialog box ancesters 57 children 57 descendents 57 first sibling 57 last sibling 57 offset 57 parent 57 siblings 57 feedback on documentation 12 filter axis 45, 62 description 42 using to filter 93 filter member list dialog box 61 filters across a level 112 and, or 108 by attributes 125, 127 by values 100 clear 95 constant value 100 description 90 dialog box 101 drill 206 filter axis 45 icon 129 merge 108 prompts 178, 179, 180 using filter axis 102 selecting data for 44 selecting members for 21 find member command 112, 187 footers see formatting reports formatting reports 85, 207 adding columns 96 charts, crosstabs 23 display dates, time, page numbers 24 headers, footers, margins 24 templates 31
Index
212
H
headers see formatting reports hierarchy definition 22, 46 family relations 47 HTML publishing 24
I
ID for SAP BW 34 include members 94 infocube files connecting to 37 infoqueries technical names 38 InfoView 208
K
key license keys 31 modify keyword 35, 37 Knowledge Base 14
L
levels definition 46 selecting 53 Levels tab 53 license key 31 list filters 112 members 112 list of values changing the display for InfoView 79 login for SAP BW 37 lowest member 48
M
margins see formatting reports markup see calculations Max see calculations MDX 41 MDX, custom calculations 150, 170
measures calculations 151 comparing 103 current measure 117 default measure 117 definition 46 in ranks and sorts 117 Median see calculations members add/remove 91, 92 calculated 150 Choose Members dialog box 106 clear from query 95 definition 46 display children 112 exclude/include 94, 95, 201, 205 filtering 100, 102, 104 find command 187 lowest member 48 modify selection 91 nesting 97 search by string 112 searching for 187 selecting 51, 53, 62 sum of 153 using attributes 125 viewing by list 64 viewing for drill 205 Members tab 51, 92 merge filters 108 metadata caching 80 Min see calculations modifying data selection 91 MS OLAP Services .cub files 32 accessing 25, 32 multidimensional analysis definition of terms 46 multimedia quick tours 12 multiple hierarchies 68 multiple reports 87
Index
213
N
named sets 52 nested columns 90, 97 nested dimensions creating 97 nesting 97 nesting see nested columns new reports 30, 62
preferences OLAP Panel options 48, 51 prompts creating 179 enabling 180 types of 181, 184 publishing reports HTML, Web 24 via the repository 208
O
offset 57 OLAP Panel how it works 41 clear, reset 95 function 21 list of features 26 setting preferences 48, 51 OLAP terms glossary table 46 OlapQueryDescription() 82 Online Customer Support 13 on-report features calculations 174 edit columns/rows 96 pivot 23 sorts, ranks, calculations 23 opening period see time series analysis operands see operators operators and/or 108 for filters 100 options OLAP Panel preferences 51
Q
quick ratio see calculations
R
range, for prompts 181 Rank dialog box 120 ranking 118 by count 118, 121 by percentage 118, 122 cumulative sum 118 ranking see ranks ranks definition 22, 90 by current measure 117 combining 124 creating 119 deleting, editing 124 limit to sum of values 123 also see on-report features ratio see calculations refresh by prompt 181, 183 command 183 report refresh 86 with prompts 186 removing members 91 report blocks 24 report bursting 77 report data source changing 72 report formatting crosstabs 202 display summary report 202 layout 85
P
page numbers see formatting reports parallel time periods see time series analysis parent definition 48 see also family percentage see calculations pivot see on-report features
Index
214
Report list 63 report login changing 75 reports multiple 87 new 30, 62 repository 208 reset OLAP Panel 95
S
sample .cub file installation path 62, 97, 153, 160 SAP BW accessing 25, 32 connection parameters 34 login 37 password access 37 show technical names of infoqueries 38 structures 42 view members by code/description 50 SAP Variables 192 Schedule document tasks 24 scope, set for drill 200 search documentation 11 search for members 112, 187 selecting levels 53 members 51, 91 send documents see document exchange server machine, connecting to 33 show list in cube 60 sibling definition 48 see also family sorting see sorts sorts definition 22, 90 alphabetical 116 by database structure 116 by measure value 117 by natural sort order 115 options 114 also see on-report features
Sorts dialog box 115 SourceName() 82 standard deviation see calculations statistics see calculations string, filter by 112 structures, SAP BW see measures subtract see difference Sum ranking cumulative sum 123 also see calculations support customer 13 suppress empty rows 49
T
tables crosstabs 202 multiple tables 87 tasks (scheduling) 24 templates 31 time periods custom level 137 time series analysis 132 time, display see formatting reports Tips & Tricks 12 total see calculations training on Business Objects products 13
V
values filtering 100 on-report calculations 174 see also calculations Variance see calculations view members by list 112 members for drill 205
Index
215
W
web customer support 13 getting documentation via 11 useful addresses 14 Web publishing 24 Web server 24 wizards Calculated Member 151 New Report 30 Table Insert 87
Z
zero row suppression 49
Index
216
Index