Ranks the records of a sales data series, optionally restricted to a date range, to find the highest or lowest results. A ranking is attributed either to an individual, as a profile, or to the organisation they belong to (eg a store or other business unit), depending on the series' sales type. Instances are created per date range by DataSeriesFolder and queried on demand to build a leaderboard view.
Methods
highestResults(int num)
Returns: List<LeaderboardRanking>
Finds the highest-ranked records in this leaderboard's date range, up to the given number of results. Records are not aggregated by date.
| Parameter | Description |
|---|---|
num | the maximum number of rankings to return |
lowestResults(int num)
Returns: List<LeaderboardRanking>
Finds the lowest-ranked records in this leaderboard's date range, up to the given number of results, ordered lowest value first. Records are not aggregated by date.
| Parameter | Description |
|---|---|
num | the maximum number of rankings to return |