Contents
Copyright............................................................................................................................2
Contributors.............................................................................................................................. 2
Feedback.................................................................................................................................. 2
Publication date and software version.......................................................................................2
Using LibreOffice on macOS.....................................................................................................2
Introduction........................................................................................................................5
Database preconditions............................................................................................................5
Data sources............................................................................................................................. 6
Calc spreadsheet.................................................................................................................6
Registered data source........................................................................................................6
Using shortcuts......................................................................................................................... 6
Creating a pivot table................................................................................................................ 6
The Pivot Table Layout dialog..........................................................................................7
Basic layout............................................................................................................................... 7
More options............................................................................................................................. 9
More settings for the fields: Field options................................................................................11
Options for data fields.........................................................................................................11
Options for row and column fields......................................................................................14
Options for filter fields.........................................................................................................18
Working with the results of the pivot table...................................................................18
Changing the layout................................................................................................................ 18
Grouping rows or columns of a pivot table..............................................................................19
Grouping of categories with scalar values..........................................................................20
Grouping of categories with date / time values...................................................................21
Grouping without automatic creation of intervals................................................................22
Sorting the result.....................................................................................................................24
Select sort order from drop-down menus on each column heading....................................25
Sort manually by using drag and drop................................................................................26
Sort automatically............................................................................................................... 26
Drilling (showing details).........................................................................................................26
Filtering................................................................................................................................... 27
Updating (refreshing) changed values.....................................................................................29
Cell formatting......................................................................................................................... 29
Deleting a pivot table............................................................................................................... 30
Using pivot table results elsewhere..............................................................................30
The problem............................................................................................................................ 30
The solution: Function GETPIVOTDATA()...............................................................................31
Syntax................................................................................................................................ 31
First syntax variation.......................................................................................................... 31
Second syntax variation.....................................................................................................32
Using pivot charts...........................................................................................................33
Introduction............................................................................................................................. 33
Creating a pivot chart..............................................................................................................34
Editing a pivot chart................................................................................................................. 35
Chapter 8 Using Pivot Tables | 3