By default, a pivot table does not contain data because its structure is not defined. To define the structure, use the tab in the pivot table settings pane.
The tab includes the following sections:
• This section includes the list of all selected columns of the initial table (the fields). To set the structure of the pivot table, add the fields from the section to the , , , and sections.
• Add the fields which will become the headings of the pivot table rows to this section.
• Add the fields which will become the headings of the pivot table columns to this section.
• Add the fields whose values will be used for calculations to this section.
• If necessary, add the fields that will be used to filter data in the pivot table to this section. Filters allow you to set the level of detail of the data and change the way the table looks.
Fields from the section can be added to the and sections manually or automatically. If fields are added automatically, they are allocated between the and areas according to the data type: •If a field contains text values, it will be moved to the section. •If a field contains numeric values, it will be moved to the section. To automatically distribute fields between the and sections, follow these steps for each of these fields: 1.In the section, hover the cursor over the title of the field which needs to be moved to the or sections. 2.Click . To add fields to the and sections manually, drag and drop them into the appropriate sections while holding down the left mouse button, or do the following for each field: 1.In the section, hover the cursor over the field which needs to be moved to the or sections. 2.Click . 3.In the menu that appears, select the section in which you want to add the field. Calculated fields created in a third-party application can only be moved to the section.
Adding fields from the section to other sections is done manually, similar to adding fields to the and sections. |
Moving fields from one section to another is done manually, similar to adding fields from the section to the other section in the . |
In any section other than the section, you can change the order of the fields in the list. The position of the field in the list determines the position of the corresponding field in the pivot table. The arrangement of fields in the and areas also determines the parent-child hierarchy of fields in the table: a field lower in the list is a child of the parent field above it. The hierarchy determines how fields are grouped in the table. To change the position of a field relative to other fields in the list, drag it to the desired location in the list while holding down the left mouse button, or do the following: 1.Hover the mouse cursor on the field and click . 2.In the drop-down menu, select the desired command: • Move the field to the beginning of the list. • Swap the selected field and the previous field. • Swap the selected filed and the next field. • Move the field to the end of the list. The drop-down menu commands depend on the position of the selected field in the list. |
You can rename any field in the pivot table if needed. You may not use formulas or functions as names, or repeat existing field names in the pivot table.
To rename a field, follow the steps below: 1.Hover the mouse cursor on the field and click . 2.From the drop-down menu, select . 3.In the dialog box, specify the name of the field and click . The name of the field in the tab will change. When you hover the mouse cursor over a field, a tooltip with its current and original name will be displayed. |
For a field that is added to the area, you can select a function for the main calculation and a function for an additional calculation. The functions for the main calculation use data from the source table. Aggregating functions (summary functions in Excel) are used as such functions. Aggregating functions are used in statistics and data analytics to analyze and summarize information. Such functions include, for example, the sum, average, minimum and maximum values, and the number of elements for the selected data group. When adding a field to the Values area, the function for the main calculation is selected automatically as follows: •If the field contains numeric data, the function is selected. •If the field contains text data, the function is selected. For calculated fields created in a third-party application the function is automatically selected. Selecting another data calculation function is not available.
The additional calculation functions use data from the value area of the pivot table. These functions allow to reduce time and effort when analyzing data and building reports, without the need for the third-party spreadsheet editors or manual methods for applying additional calculations. When adding a field to the Values area, the function for additional calculation is not used by default. It can be selected manually as described below. There are several ways to select a calculation function: •Through the settings pane of the pivot table •Through the context menu of the pivot table cells To select a function for the main calculation via the settings pane, follow these steps: 1.Open the Constructor tab of the pivot table settings pane. 2.In the field, expand the drop-down list of functions corresponding to this field. 3.Select the desired function from the drop-down list. To select a function for the main calculation via the context menu, follow these steps: 1.Select a cell or range of cells with calculated values in the pivot table. 2.Open the context menu by right-clicking and run the > desired function. To select a function for additional calculation via the settings pane, follow these steps: 1.Open the Constructor tab of the pivot table settings pane. 2.In the area, , expand the drop-down list of functions corresponding to this field. 3.Select the desired function from the drop-down list. To select a function for additional calculation via the context menu, follow these steps: 1.Select a cell or range of cells with calculated values in the pivot table. 2.Open the context menu by right-clicking and select More calculations > desired function. If the function selected for additional calculation requires additional parameters, the More calculations window opens, in which: •The Type field will indicate the function selected in the previous step. You can change it by selecting another function from the drop-down list. At the same time, if no additional parameters are required for the selected function, the Base field and Base value fields will become inactive. •The Base field field specifies a field (column) in the table that contains the initial values used for grouping and analyzing data and relative to which the calculation will be performed. Any field that is located in the Rows or Columns area in the . •In the Base value field, select the value that contains the Base field and relative to which the calculation will be performed. When selecting Next value or Previous value, each value is compared with the one following it or preceding it, respectively. If the structure of the pivot table includes only fields in the Values area, then functions that require additional parameters are not available.
To edit additional parameters of the function being used, open the More calculations window by clicking on the green text highlighted under the field drop-down list in the Values area of the pivot table constructor. To disable the function that is used for additional calculation, select the option No calculations when selecting a function, as described above. When working with pivot tables created in third-party editors, the following additional calculations are view only: •Index •Rank Largest to Smallest •Rank Smallest to Largest •Running Total in % •Running total When updating the pivot table, such additional calculations will be reset. |
To delete a field from any section of the pivot table, do one of the following: •Hover the mouse cursor over the title of this field and click . •Hold down the left mouse button and drag the field from the current area to the section. To delete a field from all areas of the pivot table to which it is added, do the following: 1.In the section, hover the cursor over the title of the field. 2.Click . |