Pivot reports sort based on the arrangement of your row-area and column-area fields. To change the order in which columns are sorted, simply rearrange your report. For more information on how to do this, see the topic “Rearranging fields” under Pivot Reports > Customizing Fields, Rows, and Columns.
You can change the sort direction (ascending, descending) of a column in several ways.
The current sort direction is indicated by the Up or Down triangle in a column or row header.
To change the direction: click once on the triangle, and the direction of the sort is reversed.
In the example below, you can see that the sort direction on one of the row-area fields has been changed from ascending to descending. The other row-area fields, as well as the column-area field ("Period" in this example) remain sorted in ascending order.
You can also use the Show Field List dialog box to specify the direction of row-area and column-area field sorts.
To open the field list, either:
Right-click on a field and select Show Field List; or
Click the Show Field List button in the Pivot Report’s Ribbon.
In the Row Area or Column Area sections, click on the triangle next to the field name.
You can sort also sort row-area fields based on your summarized data instead of on the field-values themselves.
For example, if you have your customers in the row-area, maybe you want them sorted not by their names - but by who owes you the most money.
If your pivot-table looks something like this:
Then on right-click on either "DocAmount" or "Outstanding", you’ll see this:
After you have sorted, it looks like this:
Note:
Grouping in pivot reports is a byproduct of your row-area and column-area fields.
By nature pivot reports summarize data, and your row-area and column-area fields determine how that is done.
As you can see in the screenshot below, the data are grouped by the PostingType and Account-category row-area fields, and also by the Year and Quarter column-area fields.
If you need to group a field based on something other than the set of its field values, you can create a Custom Group to do this.
Here are a couple of examples.
See Tools > Tools > Groups for information on how to create custom groups and use them in reports.