Create pivot table
create_pivot_tableAdd an Excel PivotTable that summarizes a data block by row, column, filter, and value fields, returning its name and output cells.
Instructions
Add a PivotTable that summarizes a block of data. Returns its name and cells.
Excel can refresh it; its figures (with subtotals and Grand Totals) are also written into the cells. A field can be used only once among row, column and filter fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Top-left cell; the area must be empty. | |
| name | No | PivotTable name. Default: PivotTableN. | |
| path | Yes | ||
| sheet | Yes | Sheet for the PivotTable. | |
| layout | No | Row label layout. | tabular |
| source | Yes | Header row of unique text labels, then records, e.g. 'Data!A1:E200' (no sheet: `sheet`). Columns may mix types; formulas count by their results. | |
| subtotals | No | Of outer fields. | |
| values_in | No | Where several value fields go. | columns |
| row_fields | Yes | Headers to group by down the side, outermost first. | |
| value_fields | Yes | Headers to summarize. | |
| column_fields | No | Headers across the top, outermost first. | |
| filter_fields | No | Headers as page filters. | |
| field_settings | No | Items to show, sort order and grouping for row, column or filter headers. | |
| calculated_fields | No | Usable in value_fields. |