Sorting Data in Pivot Tables
In pivot tables, you can sort rows and columns independently of each other in alphabetical
order, or by a measure. You can also sort the data based on a field that is not included
in the pivot table.
- Note:
- When you have multiple clusters in a pivot table, sorting is applied to each cluster independently. The sort starts over for each cluster.
- When you apply multiple sorts to a pivot table, sorting is applied from the outside dimension to the inside dimension.
- You cannot run
Total
,Difference
, andPercent Difference
table calculations on a pivot table that is sorted by a measure.
The available methods of sorting the data depend on whether the pivot table has a tabular or a hierarchical format. In tabular pivot tables, each field in the Rows field well has a separate title cell. For hierarchical pivot tables, all row fields are displayed in a single column labeled Rows.
- Click , the Dashboards tab.
- Click Dashboard Designer, in the bottom-left corner.
- On the Analyses dialog, click , the Options button, next to an analysis and select Edit.
- On the analysis page, select a pivot table.
- To sort data using row or column headers, click a row or column header, then select
a field to sort by and the sort order.You can sort dimension fields alphabetically or you can sort them by a measure in ascending or descending order.
- To sort data using value headers, click the value header that you want to sort and
select Sort ascending or Sort descending.Sorting by value headers in a pivot table also works on subtotals.
- To sort by a field that is not included in the pivot table:
- In the Visuals panel, click , the Options button, next to the field that you want to sort.
- Select .
- On the Off-visual field panel, select the field that you want to sort by and the aggregation method, set the sort order, and click Apply.
- To sort the row fields in a hierarchical pivot table, click the Rows header, then set the field to sort by and the sort order for each row field in the list.