Using the Map Expert

As you explore the charting capabilities of Crystal Reports, you will discover numerous powerful data visualizations that enhance the productivity of your reports and business users. Another valuable form of data presentation available in Crystal Reports is geographic mapping. This enables you to create reports that are logically grouped by geographically related information and that can communicate meaningful information in a familiar mapping model. When working with geographic data, you can quickly create a map or a map/chart combination on this data using the Map Expert.

TIP

The maps and mapping functionality provided within Crystal Reports are bundled from a third-party companyMapInfo. Additional map layers and types can be purchased directly from MapInfo and can be made accessible from Crystal Reports by adding them to the mapping folders under Program FilesMap Info X. You can order additional mapping information from MapInfo at www.mapinfo.com.

To open the Map Expert, either click on the Map Globe icon located on the Insert toolbar or access the Insert Map option under the Insert menu. Figure 8.9 displays the Map Expert dialog.

Figure 8.9. The Map Expert dialog enables the rapid addition of mapping visuals to a report.

graphics/08fig09.jpg

The next three sections introduce you to the functionality of the Map Expert and also escort you through a brief tutorial on the addition of a map to a sample Order Listing report slightly different than the one you just created.

Using the Map Expert Data Tab

The Data tab on the Map Expert dialog enables you to select the specific data that the map is based on and where it will be placed on the report. Figure 8.9 displays this tab of the Map Expert. The Data tab is composed of three different sections: Placement, Layout, and Data. These sections, and corresponding options, are discussed next.

Specifying Map Placement

The Map Placement section is used in an identical manner as the Chart Placement section for charts. It enables the selection of the location of the map on the report and consequently the recurrence of the map throughout the report.

Using the Place Map drop-down box, select the section of the report where the map will be located (for example, Group 1, Group 2, and so on). The options available in this drop-down box are limited to the groups previously created in the report in addition to the option to create the graphic only once for the entire report. Using the radio buttons located beside the drop-down box, choose the header or footer of the selected report section. By making these selections, you have also determined the map's recurrence in the report because the map repeatedly appears in every section you have specified (for example, for each country in the group based on country).

To begin with a walk-through of an example, perform the following steps:

  1. Quickly create a new report based on the Xtreme sample data 10 database, include a few columns of data in the detail section, including Order Amount, and group the report by Customer Country and then Customer Name. Finally, add summary fields on Order Amount for each of the Country and Customer Name groups.
     
  2. Open the Map Expert.
     
  3. Select Once Per Report in the Placement drop-down box and select the header as the map's intended location. The following sections contain more steps for this example.
     

Specifying Map Layout

The Layout section specifies the data that the map uses. The actual data is selected in the Map Data section (described next), but the options presented in that section are dependent on the Map Layout button you have selected. Table 8.4 lists the different layout buttons and their typical use.

Table 8.4. Map Expert Layout Buttons and Typical Use

Layout Button

Description

Typical Use

Advanced

This layout button provides complete flexibility in map creation by giving you control of all mapping options.

Creation of maps based on summaries not already created in the report or maps based on geographic fields not contained in predefined report groups.

Group

Although this button is presented second, it is the default layout if the involved report has predefined groups and summary fields already created. This layout limits the Map Data Selection options (see next section) to two drop-down boxes specifying the On Change Of and Show Values and expedites the creation of a map at the cost of some of the flexibility provided by the Advanced layout button.

Quick creation of Maps based on summarized fields already in the report and to be displayed at the Report or existing Group level.

Cross-Tab

This layout button appears as an option only when your current report is a Cross-Tab report.

Creation of a map based on an existing Cross-Tab in the report.

OLAP

This layout button appears as an option only when your current report is based on an OLAP data source.

Creation of a map based on an existing OLAP grid in the report.

For information on the Cross-Tab and OLAP layout buttons and their related map creation options, see Chapter 10, "Using Cross-Tabs for Summarized Reporting," and Chapter 20, "Advanced Crystal Analysis Report Design."

The next section explores the detailed data options enabled by the Advanced and Group Layout buttons.

CAUTION

If you attempt to create a geographic map based on a non-geographic field, the Map Expert accepts your request and then displays a blank map when it cannot resolve the selected field values to geographic entities. Make sure you select a valid geographic field in the Geographic Field item of the Advanced layout section or the On Change Of field in the Group layout section.

 

Specifying Map Data

As you saw earlier, Figure 8.9 displays the Map Data section with the Group layout button selected. As described in Table 8.4, this layout option is designed to facilitate the quick creation of a map with a minimal amount of user interaction. To accomplish this rapid map creation, two pieces of information are requested through two drop-down boxes.

The first drop-down box requests you to select the On Change Of field and the second the Show field. The On Change Of field is used to determine where the selected map breaks the report data to be displayed (for example, Country, State, or Province). The Show field specifies the summary field to be displayed for each break of the data.

NOTE

When using the Rapid Map Creation function of the Group layout option, you are limited to map creation based on existing summary fields already created in your reports and inserted into existing group sections. For more flexible map creation, use the Advanced layout option described later.

Figure 8.10 displays the Map Data tab with the Advanced layout button selected. The additional options presented here provide you with improved flexibility in the maps that you can create.

Figure 8.10. The Data tab with the Advanced layout button selected allows flexible selection of mapping data, layout, and placement.

graphics/08fig10.jpg

The familiar On Change Of field should be recognizable in this new window although it is selected in a more flexible manner using the selection buttons in the interface. It is selected in exactly the same manner as the Geographic field selection in this interface by selecting any of the fields in the Available Fields listing and clicking on the selection button.

NOTE

The Geographic and On Change Of fields are often the same, but can be set to be different. These are set to different field values when you want to present pie or bar charts on top of the involved map and for each of the different values in the selected Geographic field. An example of this would be presenting a pie chart for each country that highlights the different order amounts by companyindicated in the On Change Of field.

After selecting your Geographic and On Change Of fields, a Map Values field must be selected to enable the map's creation. This selection specifies the summary field to be displayed for each break of the data and can come from any field (database, report, formula, and so on) that is listed in the available field's list. To select the Show Value fields, highlight the intended field and use the selection arrow buttons adjacent to the Map Values list box.

NOTE

As mentioned previously, you do not need to have had an existing summary on a report to summarize on it using the Advanced Mapping layout options. You can add any field to the Map Values list and then dynamically create a summary by clicking on the Set Summary Operation button. These dynamically created summaries are automatically created and used by the map.

To continue adding a map to your sample report, follow these steps:

  1. Ensure that the Advanced layout button from the Layout section is selected.
     
  2. Select Country for the Geographic field. This indicates that the map breaks for each different country. Leave the On Change Of field as Country when this gets populated automatically.
     
  3. Select Order Amount for the Show field and leave the default Sum as the summary operation. This indicates that the map reflects this Sum of Orders for each country. Figure 8.10 should reflect the results of these steps in the Data tab. You will finish creating this map in the next two sections.
     

Using the Map Expert Type Tab

The Type tab enables you to select from the five different types of maps that are available for presentation. The five map types can be logically broken into two distinct and separate categoriesmaps that present a summarization based on one variable, and maps that present a summarization based on two variables. The Type tab with these five map types is depicted in Figure 8.11. All five of the map types are also described in Table 8.5.

Figure 8.11. The Map Expert Type tab enables you to select from the different types of maps available for display in your report.

graphics/08fig11.jpg

Table 8.5. Map Types with Corresponding Sample Reporting Scenario

Map Type

Description

Sample Scenario

Ranged

Breaks data into specified ranges and displays geographic areas on the map in different colors.

A U.S.-based firm looking for a Sales Map that highlights the states that fall into a specified number of sales/revenue ranges.

Dot Density

Displays a dot for each occurrence of a specified item.and map that to ongoing marketing campaigns.

A growing wireless company in Eastern Canada wants to view the density and point location of new customers

Graduated

Displays data that is linked to points rather than precise geographical areas.

An Irish beverage company wants a report on geographically dispersed distributors, proportionately highlighting the amount of product being distributed.

Pie Chart

Displays a pie chart over each geographic area. Each slice of the pie represents an individuals ummarization relative to the whole for the given geographic area.

An employee head-count report for the United States with a pie chart over each state that highlights the breakdown of the employees by status including salaried, hourly, or temporary.

Bar Chart

Displays a bar chart over each geographic area. Each bar represents an individual summarization relative to the other summarizations for the given geographic area.

A marketing media report for a U.S.-based company with a bar chart that highlights the amount of advertising and marketing dollars spent in different media in each region: TV, Internet, newspaper, magazine, and so on.

The first three map types shown base their maps on the summary of the selected Show Value field and for each Geographic fieldthe single fluctuating variable. The last two map types base their maps not only on the changing Geographic field, but also on a second fluctuating variable selected in the On Change Of field. Based on this second variable changing, either bar or pie charts are displayed on top of each of the involved Geographic fields. Table 8.5 describes the different map types, and includes a sample scenario for each.

Each Map Type has a small number of associated options that can be set to customize the appearance of that particular map. You are encouraged to explore these options to help you find the maps most useful for your specific design goals.

Using the Map Expert Text Tab

After a map's type and data have been selected, select the Text tab. This tab on the Map Expert dialog enables you to specify titles and legend formatting that the map uses when it is placed on the report.

To finish adding a map to your sample report, follow these steps:

  1. On the Type tab, select the Ranged map type.
     
  2. Select Yellow and Blue as the respective low and high range colors.
     
  3. Click on the Text tab and give your map a title such as Crystal Reports Chapter 8 Map Sample.
     
  4. Click OK, and you will find a geographic map added to your report that should look similar to Figure 8.12.
     

    Figure 8.12. A sample Customer Orders Report with a geographic map.

    graphics/08fig12.jpg  

Part I. Crystal Reports Design

Creating and Designing Basic Reports

Selecting and Grouping Data

Filtering, Sorting, and Summarizing Data

Understanding and Implementing Formulas

Implementing Parameters for Dynamic Reporting

Part II. Formatting Crystal Reports

Fundamentals of Report Formatting

Working with Report Sections

Visualizing Your Data with Charts and Maps

Custom Formatting Techniques

Part III. Advanced Crystal Reports Design

Using Cross-Tabs for Summarized Reporting

Using Record Selections and Alerts for Interactive Reporting

Using Subreports and Multi-Pass Reporting

Using Formulas and Custom Functions

Designing Effective Report Templates

Additional Data Sources for Crystal Reports

Multidimensional Reporting Against OLAP Data with Crystal Reports

Part IV. Enterprise Report Design Analytic, Web-based, and Excel Report Design

Introduction to Crystal Repository

Crystal Reports Semantic Layer Business Views

Creating Crystal Analysis Reports

Advanced Crystal Analysis Report Design

Ad-Hoc Application and Excel Plug-in for Ad-Hoc and Analytic Reporting

Part V. Web Report Distribution Using Crystal Enterprise

Introduction to Crystal Enterprise

Using Crystal Enterprise with Web Desktop

Crystal Enterprise Architecture

Planning Considerations When Deploying Crystal Enterprise

Deploying Crystal Enterprise in a Complex Network Environment

Administering and Configuring Crystal Enterprise

Part VI. Customized Report Distribution Using Crystal Reports Components

Java Reporting Components

Crystal Reports .NET Components

COM Reporting Components

Part VII. Customized Report Distribution Using Crystal Enterprise Embedded Edition

Introduction to Crystal Enterprise Embedded Edition

Crystal Enterprise Viewing Reports

Crystal Enterprise Embedded Report Modification and Creation

Part VIII. Customized Report Distribution Using Crystal Enterprise Professional

Introduction to the Crystal Enterprise Professional Object Model

Creating Enterprise Reports Applications with Crystal Enterprise Part I

Creating Enterprise Reporting Applications with Crystal Enterprise Part II

Appendix A. Using Sql Queries In Crystal Reports

Creating Enterprise Reporting Applications with Crystal Enterprise Part II



Special Edition Using Crystal Reports 10
Special Edition Using Crystal Reports 10
ISBN: 0789731134
EAN: 2147483647
Year: 2003
Pages: 341

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net