Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Let's work through an example for the Xtreme Mountain Bike Company—the
fictitious company that corresponds to the sample database provided
with Crystal Reports.
Xtreme management needs a summary report to provide a quick glance at
its shipped orders. The managers want to know how much has been spent
by country for every six-month period, but they only want to see the
top 10 countries . The following steps show you how to create this report:
1. Create a new report by choosing File, New and when the Report
Gallery appears, choose As a Blank Report and then click OK.
2. Click OK in the Group Sort Expert to view the final result, as shown in
Figure 10.5.
2. Insert a text object by opening the Insert menu, and then selecting
Text Object.
3. Preview the report. Click F5 to see the result. It's not exactly as you
intended (see Figure 10.6).
Figure 10.6. Design with cross-tab and text field in improper location.
The Relative Position property works on the left, top, and right borders of
the cross-tab. Remember that the bottom border of the cross-tab is handled
by the end of a section.
Relative positions can be used in many situations. For example, showing a
chart on the information in the cross-tab can be very useful.
Inserting a "Percentage of" Summary
Summary values can also be displayed as percentages of either the total
rows or total columns:
1. Add another summary. Right-click in the top left of the cross-tab
where no data appears and choose Cross-Tab Expert. In the Cross-Tab
tab, choose to add the Order Amount to the Summarized Fields list
box by clicking the arrow (>) button. Notice that it looks like it
duplicates the summary above it, so choose the
Change Summary button.
2. Change the Summary to a Percentage Summary. In the
Edit Summary dialog in the Options box, select Show As
Percentage Summary. Notice that it has an option for Row or Column.
In this case you want to know by country (row) where the percentage
split is, so keep Row selected as shown in Figure 10.8.
Figure 10.8. The Edit Summary dialog.
2. View the report. Click the OK button to see the changes made to the
cross-tab (see Figure 10.10).
TIP
The same technique that you used to change the display value of
the cell can be used on any area, and you can combine the interactivity
provided by parameters and other formula functions to drive any section or
field in the cross-tab.