Ranking parameters
The following table describes the parameters from left to right in the ranking:
|
Parameter |
Description |
|---|---|
|
Top/Bottom |
Ranking order. Top - ranks in descending order. Bottom - ranks in ascending order. |
|
Number of records |
The number of records to return in the ranking. For example, the top 10. |
|
Ranking object |
The object used in the ranking. For example, if the object is Region and the ranking is Top 10, the ranking returns the top 10 regions. |
|
Based on |
The measure by which the ranking object is ranked. For example, if the measure is Revenue and the object is Region, Crystal Reports ranks regions by the amount of revenue they generate. |
|
For Each (optional) |
The object that specifies additional calculation context for the ranking. For example, if the ranking object is Region, the measure is Revenue and the For Each dimension is Country, Crystal Reports ranks regions by revenue within each country. |
|
WHERE condition (optional) |
Additional restriction on the values returned in the ranking that appears below the other parameters. For example, a ranking of regions with a condition that restricts Country to "USA" ranks only those regions in the USA. |