---
title: "pivot.recommended: Recommended Pivot Tables — Sheet kit command — Kition"
description: "Suggests pivot table layouts for a source and answers them; with apply, creates the suggestion at that index."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/pivot.recommended"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/pivot.recommended](https://developer.kition.ai/docs/kits/sheet/commands/pivot.recommended)

# pivot.recommended

**Recommended Pivot Tables.** Suggests pivot table layouts for a source and answers them; with apply, creates the suggestion at that index.

- Kit: Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `apply` | `integer` | no | a position counted from 0 (the first is 0) |
| `destination` | `string` | no | a cell in A1 notation, or "new" for a new sheet |
| `source` | `string` | no | a range in A1 notation such as Sheet1!$A$1:$E$200, or a table name |

## Call through sheet_run

```text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "pivot.recommended" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `apply`, `destination`, `source`. 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": {
    "apply": {
      "description": "a position counted from 0 (the first is 0)",
      "type": "integer"
    },
    "destination": {
      "description": "a cell in A1 notation, or \"new\" for a new sheet",
      "type": "string"
    },
    "source": {
      "description": "a range in A1 notation such as Sheet1!$A$1:$E$200, or a table name",
      "type": "string"
    }
  },
  "returns": "suggestions [{index, title, rows, columns, values}]; with apply, creates that one",
  "type": "object"
}
```

Generated from the command list of @kition/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
