Crystal Reports for Eclipse Designer Guide

To select the top or bottom N groups


Note: This procedure shows how to select top or bottom N groups. Top or bottom percentages work the same way except that you define the percentage value instead of the number of groups.
  1. Create a report and summarize the data as desired.
    When you summarize the data, the program breaks the data into groups and summarizes each group.
    • With top N groups, you are instructing the program to display those groups that have the highest summary values (Top N).
    • With bottom N groups, you are instructing the program to display those groups that have the lowest summary values (Bottom N).
  2. On the Report Structure panel, click the group.
  3. On the Sort Order list, click Top N or Bottom N.
  4. Click Where N Is, and enter a value for N.
  5. Set Include Ties to True to accommodate groups whose summarized values are equal.
    For example, suppose you had the following groups:
    • Order 1 = 100
    • Order 2 = 90
    • Order 3 = 80
    • Order 4 = 80
    If you set your top N to be three, but you do not select "Include ties," your report will show Order 1, Order 2, and Order 3.
    However, if you select "Include ties," your report will show Order 1, Order 2, Order 3, and Order 4 even though N is set as three. In this way, the program accommodates the equal values of orders 3 and 4.
    When the program runs the report, it will include only those groups that you specified.
  6. Set Others (show) to True to display other records, or False to hide the other records.
  7. If Others (show) is True, click Others (alias) and enter a name for the other records to be grouped under.



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/