Of course you can add new records to your pseudo-database.
1. Tools>Options>Calc>General>"Expand refs when new rows and columns..." = ON
2. Insert new rows within the list range or directly below.
All formulas, all names, pivot tables, charts, conditional formats, validations etc. referring to that list range will adjust. Without the above option the insertion below would not expand the reference.
3. Refresh the data pilot (right-click>refresh or menu:Data>Pivot>refresh)
or
3. Put the pilot(s) on separate sheets and use a little macro to update all pivots when the sheet becomes active.
Code: Select all
Sub activatePivotSheet()
sh = ThisComponent.CurrentController.getActiveSheet()
for each dp in sh.DataPilotTables
dp.refresh()
next
End Sub
or refresh all pivots on all sheets by pushing a document specific toolbar button:
Code: Select all
Sub refreshAllPivots()
shx = ThisComponent.getSheets()
for each sh in shx
for each dp in sh.DataPilotTables
dp.refresh()
next
next
End Sub
Tools>Customize>Toolbars, select your document at "Save in" and add a new toolbar with a macro button.
This would also work if you would store your list data in a real database (which is the one and only way to go with all kinds of growing row sets).
And of course you can do similar aggregations with simple database queries.