Sort the data on a report
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
You can sort the data that is displayed on a report. The following procedure shows how to sort the data on the Customers report. You can modify this procedure to sort the data on the report that you are working with.
Open the module that contains the data to print. For example, to print the Customers report, open the Accounts receivable module.
On the module’s area page, in the Reports section, click the report to print. For example, to print the Customers report, click Customer > Customers.
A form is displayed that lists the fields that the data on the report is filtered by. The form also displays the destination that the report is printed to.
Click Select. An inquiry form is displayed. This form is used to sort the data on the report.
Click the Sorting tab. The Sorting tab displays the fields that you can sort the data on the report by.
To add a field, click Add. Then follow these steps:
In the Table field, select the table that contains the field that you want to sort the data by.
In the Field field, select the field that you want to sort the data by.
In the Search direction field, select whether you want to sort the data in ascending or descending order.
For example, suppose you want to sort the Customers report by the customer’s credit limit. In this scenario, you would follow these steps:
In the Table field, select Customers.
In the Field field, select Customers.
In the Criteria field, select Credit limit.
In the Search direction, select Ascending or Descending.
To remove a field, select the row that contain the field and then click Remove.
Click OK to close the inquiry form.
Click Destinations ... to specify how you want to print the report.
Click OK to print the report.