Home > Articles > Home & Office Computing

This chapter is from the book

This chapter is from the book

Using the OLAP Report Creation Wizard and OLAP Expert

Crystal Reports provides two easy ways to create reports against OLAP data sources. As introduced in Chapter 1, "Creating and Designing Basic Reports," Crystal provides several report wizards to step you through the creation of some popular types of reports—one of those is OLAP. The OLAP Report Creation Wizard involves five steps and walks you through the process of creating an OLAP grid and an optional supporting graphic based on an existing data source. You can access the OLAP Report Creation Wizard when you are creating a new report.

The second method of creating an OLAP-based report is through the OLAP Expert that you access from the Insert OLAP Grid on the Insert menu. This expert provides six tabs that step through the creation of an OLAP grid to be placed anywhere on a report.

The two methods of creation offer very similar degrees of functionality, and their respective dialog screens and tabs are almost identical. The OLAP Report Creation Wizard provides a built-in Charting screen not found in the OLAP Expert, whereas the OLAP Expert provides Style Customization and Label tabs not found in the OLAP Report Creation Wizard.

Specifying an OLAP Data Source

The OLAP Data tab (or screen in the OLAP Report Creation Wizard) requests the OLAP data source on which the report is to be based. This wizard and its associated dialog screens are to multidimensional data sources what the data explorer, introduced in Chapter 1, is to relational data. Figure 16.1 shows the OLAP Data screen from the OLAP Report Creation Wizard.

Figure 16.1

Figure 16.1 The OLAP Data dialog from the OLAP Report Creation Wizard.

When this screen first displays, you must use the Select Cube button to select a cube. Clicking on this button opens the OLAP Connection Browser, displayed in Figure 16.2. From the tree control presented in this dialog, select the desired cube.

Figure 16.2

Figure 16.2 The OLAP Connection Browser enables the specification of an OLAP data source for the involved Crystal Report.

To help you learn about the creation of an OLAP-based Crystal Report, here are the introductory steps to doing exactly that against SQL Server 2005's sample FoodMart Sales and Employee cube (provided at usingcrystal.com). Other exercise steps will appear throughout the chapter after the presentation of related text and figures. For now, start the OLAP Report Creation process with the following steps:

  1. Create a New Crystal Report by selecting the OLAP Cube Report Wizard from the Crystal Reports Start Page.
  2. Click the Select Cube button from the OLAP Data dialog.
  3. Assuming that the location of the OLAP Server has not already been identified to the OLAP Connection Browser, click the Add Server button and identify the location of your SQL Server Analysis Server and the sample Sales and Employees cube. Figure 16.3 shows the New Server dialog.
    Figure 16.3

    Figure 16.3 The Connection Properties dialog for a new OLAP server creates new connections to OLAP data sources.

  4. Enter a caption for the OLAP server you are adding. This caption appears in the OLAP Connection Browser. Enter the name of the SQL Server Analysis Server for the server name and click on OK.
  5. Back in the OLAP Connection Browser, navigate into the presented list of servers (there will likely be only the server you just added) and double-click on the sample Sales and Employees cube.
  6. Before clicking on the Next button to proceed, you see the Page Dimension Selector dialog. New to version 2008, from here you can select the specific dimensions from the cube that you would like to report on. For this exercise, select the highest level dimension from each group and click on OK to move forward. In the future you can use this functionality to restrict retrieved data/dimensions from larger cubes.

Specifying OLAP Rows and Columns

The Rows/Columns dialog screen enables you to select both the dimensions and fields to be presented along the columns and rows of the OLAP grid. The Dimensions list box depicted in Figure 16.4 lists all the available dimensions in the selected cube/data source.

Figure 16.4

Figure 16.4 The Rows/Columns dialog of the OLAP Report Creation Wizard.

To select a dimension for placement in the rows section or the columns section of the OLAP grid, highlight the desired dimension and click either the column or row arrow (>) button. It is possible to select multiple dimensions for display and to have them nested in the OLAP grid by successively selecting multiple dimensions for either the rows or the columns section. It is also possible to remove dimensions from the existing row or column list boxes; however, you cannot leave the column and row dimension list boxes empty.

After selecting the desired dimensions, you can select a subset of the fields (also known as members) for those dimensions by using the Select Row Members or Select Column Members button. Examples of this include selecting only a certain subset of provinces or states in a region dimension or, alternatively, selecting only a certain year's worth of data in a time dimension. By highlighting a dimension in either the Rows or the Columns list box and then selecting the appropriate selection button, you can use the Member Selector dialog to select a subset of the members for the involved dimension, as shown in Figure 16.5.

Figure 16.5

Figure 16.5 Use the Member Selector dialog to select default column and row dimension members.

The last and newest feature of the Rows/Column screen is the Create/Edit Parameter functionality provided for each of the row and column dimensions. This capability provides the business user or report consumer with the capability to interact with the report and control its content by entering parameters that directly affect the dimension members displayed in the OLAP grid(s) on the report.

Because Chapter 5, "Implementing Parameters for Dynamic Reporting," covered parameters in detail, you are familiar with this topic. Of significance for this wizard screen is that the parameter creation process is directly accessible here, and this facilitates the rapid development of formatted and interactive OLAP reports. If necessary, review Chapter 5 for a refresher on creating and editing parameters.

Continuing with the creation of the sample report started in the last section, the following steps walk through the Rows/Columns screen part of this report creation example and allow for the refinement of the data to be viewed in the OLAP grid. Follow these steps to add rows and columns to your OLAP-based report:

  1. Select the Stores dimension from the available dimensions list as the Row dimension using the row dimension arrow button. (Note: It will likely be necessary to remove a default dimension to ensure that this is the only dimension in the row dimensions list view.)
  2. Using the Select Row Members button, select all the store country locations (for example, Canada, USA, and Mexico) from the Member Selector dialog, but deselect the aggregated top-level All field. This enables the OLAP grid to present all the different store types down the side of the grid as rows.
  3. Select the Time dimension from the available dimensions list as the Column dimension using the column dimension arrow (>) button. (Note: It will likely be necessary to remove a default dimension to ensure that this is the only dimension in the column dimensions list view.)
  4. Using the Select Column Members button, select the quarters Q1, Q2, Q3, and Q4 from the year 1998 from the Member Selector dialog, but be sure not to select any children members. This enables the OLAP grid to present a comparison of the four quarters of data in four side-by-side columns.
  5. Click the Next button to proceed.

At this point, you will review the concept of OLAP dimension filters and pages in your OLAP report.

Specifying OLAP Dimension Slices (Filters) and Pages

The Slice/Page dialog of the OLAP Report Creation Wizard, shown in Figure 16.6, enables you to select values or members for the dimensions not selected to be row or column dimensions. In the OLAP world, these dimensions are paged or sliced dimensions.

Figure 16.6

Figure 16.6 The Slice/Page screen of the OLAP Report Creation Wizard allows manipulation of the dimensions not selected for use on either the rows or columns.

The Slice list box lists all the paged dimensions and their current member settings. The default setting is usually all members for any given dimension. An example is that for the Media Type Dimension, the default slice setting is All. To change the member selection (slice) for a particular dimension, that dimension must be selected in the Slice list box, and the Select Slice button must be used to open the familiar Member Selection dialog (refer to Figure 16.5). This dialog is identical to the Member Selector dialog used previously except that you can choose only one member from the selected dimension. If multiple members from a slice dimension are required in a report, use the Page list box and create separate pages/grids for each selected value.

The Page list box is initially empty but can contain any dimensions outside the row and column dimensions that require multiple member selection. An example could involve selecting the three countries of North America as store regions. The selection of multiple values for a paged dimension creates completely separate grids (based on the same preselected rows and columns) for each selected member value. To select multiple members for a dimension, select the involved dimension in the Slice list box and move it to the Page list box using the transfer arrow buttons between the list boxes. After you move the dimension to the Page list box, the Select Page Values button enables multiple member selection through the Member Selector dialog.

The last, but perhaps most powerful, feature of the Slice/Page screen is the Link to Parameter functionality provided for each of the filtered and paged dimensions. This capability provides the business user or report consumer with the capability to interact with the report and control its content by entering parameters that directly affect the information displayed in the OLAP grid(s) on the report.

Of significance for this wizard screen is that the parameter creation process is directly accessible here, which facilitates the rapid development of formatted and interactive OLAP reports.

u2192.gif

For more information on creating and editing parameters, see "Creating and Implementing Parameters Fields," p. 134

Continuing with the creation of the sample report, the following steps walk through the Slice/Page dialog part of this report creation example and enable you to select the measure to display in the OLAP grid. Follow these steps to select measures on the page/slice dimensions:

  1. Select the Measures dimension from the Slice list box.
  2. Instead of selecting a specific filter using the Select Slice button, click the Link to Parameter Create/Edit button to enable the business user to dynamically select this slice every time the report runs. The Create Parameter Field dialog appears, as shown in Figure 16.7.
    Figure 16.7

    Figure 16.7 The Create Parameter Field dialog called from the Slice/Page screen.

  3. In the Prompting Text text box, enter the text that you want your user to be prompted with when this report runs. In this case, it could be something similar to Please select the measure to be used in your report. Also, ensure that the Discrete Value(s) radio button is active because a range of entries is not required or allowed here.
  4. To avoid requiring users to type in any text, defaults can be set so that selection from a drop-down box is possible. To do this, click the Default Values button. The dialog in Figure 16.8 appears.
    Figure 16.8

    Figure 16.8 The Set Default Values dialog for the OLAP slice parameter.

  5. The Measures table is preselected because the report respects the association with the previously highlighted dimension. Move all the available member values for the Measures dimension to the Description list box by clicking on the Select Default Values button and selecting all the members through the familiar Member Selector dialog.
  6. Ensure that the Display drop-down box has Description selected and that the Order drop-down box has no sort selected. Click on OK twice to get back to the Slice/Page dialog of the OLAP Report Creation Wizard.
  7. When you return to the Slice/Page dialog, highlight the Products dimension in the Slice list box, and click on the arrow transfer/select button to move it to the Page list box. The Member Selection dialog immediately appears with the Products Dimension Hierarchy presented.
  8. Select the Food and Drink Product types (two of the children of All Products), and deselect the All Products field. Individual OLAP grids are created for each of the drink products and the food products. If this isn't clear now, it should make more sense when you visualize the report.
  9. Click on OK and then Next to proceed.

Adding Report Styles in the OLAP Report Creation Wizard

The Style dialog in the OLAP Report Creation Wizard enables you to select any one of a predetermined number of styles for OLAP grids available in Crystal Reports. Figure 16.9 displays the Style dialog. The styles are a good starting point for formatting the OLAP grids on your reports. You can enhance them through the Customize Style tab of the OLAP Expert (described later in the chapter) and by using many of the advanced formatting features you have already learned about.

Figure 16.9

Figure 16.9 The Style dialog of the OLAP Report Creation Wizard.

Adding Charts via the OLAP Report Creation Wizard

The Chart dialog provided in the OLAP Report Creation Wizard enables you to quickly add graphics to the OLAP report being created. The graphics available in the wizard, shown in Figure 16.10, are only a subset of the graphics available in Crystal Reports (see Chapter 8, "Visualizing Your Data with Charts and Maps," for a refresher), but they enable a rapid visualization of your OLAP data without using the Chart Expert.

Figure 16.10

Figure 16.10 The Chart dialog of the OLAP Report Creation Wizard enables you to select between different basic chart types.

Aside from selecting the type of chart (bar, line, or pie) and specifying a title on this screen, you must specify an On Change Of field with an optional Subdivided By field before this screen is complete. As Chapter 8 discussed, On Change Of is the data source field that provides the breaking point for the involved graphic. Examples could include country, region, year, store, product, and so on. The Subdivided By field can provide a second variable to base your charts on. An example of a two-variable OLAP chart using the FoodMart sample cube is a chart showing salary information by year and then subdivided by store type.

To complete the OLAP report creation process, the following steps take you through the addition of a style, a chart, and the creation of the finished report:

  1. On the Style dialog, select any style that suits your preference, and click on the Next button.
  2. On the Chart dialog, select Pie Chart as the chart type by selecting the associated radio button. This provides a nice way of visualizing comparables across different store types.
  3. Give your chart a title similar to Measures by Store Country and Time by entering it in the Chart Title text box.
  4. Select all grid column fields as the On Change Of field. This facilitates the comparison of the three store locales. Select all the grid row fields as the Subdivided By drop-down selection.
  5. Click on the Finish button on the OLAP Report Creation Wizard. The wizard prompts you to select a parameter for the Measure dimension. After you select Store Sales (or another field if you prefer), the wizard generates a report that looks similar to Figure 16.11.
    Figure 16.11

    Figure 16.11 The sample OLAP report created using the OLAP Report Creation Wizard.

The OLAP Report Creation Wizard provides an efficient and effective method to getting value out of OLAP data in a short time. After placing an OLAP grid or OLAP chart on your report through the wizard, you can perform further formatting and analysis through a variety of built-in Crystal Reports formatting tools. The next two sections explore further customization options, and the three subsequent sections discuss the powerful interactivity available in Crystal Reports OLAP objects.

Customizing Styles in the OLAP Expert

After an OLAP grid has been added to a report, with or without a selected style, Crystal Reports provides the capability to enhance and customize the formatting of that grid through the Customize Style tab of the OLAP Expert. Figure 16.12 shows the OLAP Expert dialog, which you access by right-clicking on an existing OLAP grid object and selecting OLAP Grid Expert or by selecting the Insert OLAP Grid option from the Insert menu.

Figure 16.12

Figure 16.12 The OLAP Expert dialog provides the capability to edit many OLAP grid display properties including the customization of styles.

Four of the tabs in the OLAP Expert have identical functionality to that presented in the previous OLAP Report Creation Wizard sections. The Customize Style tab shown in Figure 16.12 is unique to the OLAP Expert and provides the capability to fine-tune the formatting of the row and column dimensions selected for the involved OLAP grid. By selecting any of the column or row dimensions from the presented list boxes, you can select custom colors for the backgrounds of the OLAP grid row and column headings. The Customize Style tab offers a number of formatting options for the presentation of the grid, including indentation, blank column/row suppression, margins, and labels. Also provided is an option to format grid lines, as shown in Figure 16.13. This dialog enables granular level formatting and selection of grid lines for display on the OLAP grid's layout.

Figure 16.13

Figure 16.13 The Format Grid Lines dialog is accessed from the Customize Style tab of the OLAP Expert dialog and enables granular-level control of the grid lines in the OLAP grid.

Customizing Labels in the OLAP Expert

The Labels tab of the OLAP Expert, shown in Figure 16.14, provides the capability to customize the display of the paged dimension (non-row/column dimensions) labels on the OLAP grid.

Figure 16.14

Figure 16.14 The Labels tab of the OLAP Expert enables you to specify display properties around the OLAP grid's dimensions.

Paged/sliced dimension member values for the display grid can be displayed or hidden by simply moving the selected dimension between the unlabeled dimension and labeled dimension list boxes using the transfer arrow (>, >>, <, <<) buttons. You can select additional labeling options such as label location, label spacing, and dimension names in this tab.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020