Sheet kit command

table.summarizePivot

Summarize with Pivot Table

Creates a pivot table from a table (default: the table at the active cell).

Kit
Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
Changes the document
yes

Parameters

Parameters of table.summarizePivot
NameTypeRequiredDescription
columnsany[]noread by the command beside its listed parameters
destinationstringnoa cell in A1 notation, or "new" for a new sheet
filtersany[]noread by the command beside its listed parameters
locationstringnoread by the command beside its listed parameters
namestringnoread by the command beside its listed parameters
rangestringnoread by the command beside its listed parameters
replacebooleannoread by the command beside its listed parameters
rowsanynoread by the command beside its listed parameters
sourceanynoread by the command beside its listed parameters
tablestringnoa table name; default: the table at the active cell
valuesany[]noread by the command beside its listed parameters

Call through sheet_run

text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "table.summarizePivot" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: columns, destination, filters, location, name, range, replace, rows, source, table, values. sheet_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "columns": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "destination": {
      "description": "a cell in A1 notation, or \"new\" for a new sheet",
      "type": "string"
    },
    "filters": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "location": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "name": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "range": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "replace": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "rows": {
      "description": "read by the command beside its listed parameters"
    },
    "source": {
      "description": "read by the command beside its listed parameters"
    },
    "table": {
      "description": "a table name; default: the table at the active cell",
      "type": "string"
    },
    "values": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (sheet_commands through @kition/[email protected], built from KitionAI/kition-sheet@82f13b2). As data: commands.jsonl.