Report Designer: Top/Bottom Filters

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.

 Note
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.

96YsCqvWQG.png

Top/Bottom tab of the Filters dialog

To show only the top or bottom values, for either data fields or data summaries:

  1. Click the Filters funnel icon on the toolbar to open the Report Filters dialog. Click the Top/Bottom tab.
  2. Check the Limit the report to the top/bottom values checkbox.
  3. From the Top/Bottom dropdown select either Top to show the largest or latest values or Bottom to show the smallest or earliest values.
  4. Choose which values will be displayed, either:
  5. Select the data field or group field to filter from the Value dropdown.
  6. Choose the Direction that the results should be sorted:

To optionally filter the top/bottom values of each sorted group on a report, called a For Each Group:

  1. Click the + Add Group button.
  2. Select one of the sorted groups on the report to group by from the dropdown list. You may also type into the dropdown list to search for the name of a field.
  3. Click Okay.

To remove a For Each Group, click the Delete Dropdown X icon.

To remove a Top N Filter, uncheck the Limit the report to the top/bottom values checkbox.

Examples

Top 3 Performing Salespeople

A report showing the name and sales revenue for the top three performing salespeople in an organization may look like this:

npxo1XamQQ.png

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.

UThfcgAQfm.png

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:

UHwecaCUYB.png

Top N Filter dialog for Top 3 Performing Salespeople report

Largest Donations per Donor

A 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:

IQ4jXoAFAC.png

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:

vf0JN544d0.png

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:

NFtaI4ceuM.png

Top N Filter dialog for Charitable Donations report