Top/Bottom filters, also known as Top N filters can be added to a report. Top N filters allow you to filter data to only the rows with the top or bottom values, for either data fields or data summaries, per group iteration.
Top/Bottom filters work after all other filters have been applied. If a Standard or Group Min/Max filter has narrowed down a data field, a Top/Bottom filter will work on the remaining values.
To show only the top or bottom values, for either data fields or data summaries:
icon on the toolbarTo optionally filter the top/bottom values of each sorted group on a report, called a For Each Group:
Add Group button.To remove a For Each Group, click the Delete Dropdown
icon.
To remove a Top N Filter, uncheck the Limit the report to the top/bottom values checkbox.
A report showing the name and sales revenue for the top three performing salespeople in an organization may look like this:

In the Report Designer, the report contains the Employee Name and an aggregate of all of their order revenues summed together. The detail rows are collapsed so they are not initially visible in the Report Viewer until they are expanded.

To filter all of the employees to show only those with the highest three revenues, a Top N Filter is applied with the following properties:
=aggsum({OrderDetails.Revenue}) to set the criteria to the aggregate sum of each employee’s ordersA report showing a fundraising goal may want to show the name of each donor, and the top two largest donations that each donor made to the cause may look like this:

The report is sorted by the donor’s last name. Each donor may have made many contributions to the cause. In the Report Designer, the report looks like this:

If a Top N Filter is added, only the top donations will be shown. To show the top two donations for each donor, a Top N Filter with a For Each group is added with the following properties:
Add Group button was clicked to add a For Each group. Set to donors.Surname to enable the Top N filter to be applied to each donor’s name.