\<bookmark_value\>DataPilot tables\</bookmark_value\>\<bookmark_value\>DataPilot function; calling up and applying\</bookmark_value\>

Creating Pivot Tables

  1. Position the cursor within a range of cells containing values, row and column headings.

  2. Choose \<emph\>Data - DataPilot - Start\</emph\>. The \<emph\>Select Source\</emph\> dialog appears. Choose \<emph\>Current selection\</emph\> and confirm with \<emph\>OK\</emph\>. The table headings are shown as buttons in the \<emph\>DataPilot\</emph\> dialog. Drag these buttons as required and drop them into the layout areas "Page Fields", "Column Fields", "Row Fields" and "Data Fields".

  3. Drag the desired buttons into one of the four areas.

Drag a button to the \<emph\>Page Fields\</emph\> area to create a button and a listbox on top of the generated datapilot table. The listbox can be used to filter the DataPilot table by the contents of the selected item. You can use drag-and-drop within the generated DataPilot table to use another page field as a filter.

If the button is dropped in the \<emph\>Data Fields\</emph\> area it will be given a caption that also shows the formula that will be used to calculate the data.

  1. The order of the buttons can be changed at any time by moving them to a different position in the area with the mouse.

  2. Remove a button by dragging it back to the area of the other buttons at the right of the dialog.

  3. To open the Data Field dialog, double-click one of the buttons in the Row Fields or Column Fields area. Use the dialog to select if and to what extent LibreOffice calculates display subtotals.

Exit the DataPilot dialog by pressing OK. A \<emph\>Filter\</emph\> button will now be inserted, or a page button for every data field that you dropped in the \<emph\>Page Fields\</emph\> area. The DataPilot table is inserted further down.

Open file with example: