# Pivot Layout Wizard

Canonical page: https://www.adaptabletools.com/docs/handbook-layouts-wizard-pivot

- The Layout Wizard provides full run-time ability for creating and editing Pivot Layouts

[Layouts](https://www.adaptabletools.com/docs/handbook-layouts/index.md) · [Pivot Layouts](https://www.adaptabletools.com/docs/handbook-layouts-pivot/index.md) · [AdapTable Wizards](https://www.adaptabletools.com/docs/ui-settings-panel-wizards/index.md).

The Pivot Layout Wizard enables run-time users to create and edit [Pivot Layouts](https://www.adaptabletools.com/docs/handbook-layouts-pivot/index.md) (if their [Entitlements](https://www.adaptabletools.com/docs/handbook-permissioning/index.md) allow).

It leverages the [AdapTable Wizard](https://www.adaptabletools.com/docs/ui-settings-panel-wizards/index.md) to provide full run-time control to users.

### Creating and Editing Pivot Layouts in the Layout Wizard

These are the steps required in the Layout Wizard to create a Pivot Layout

This step is used to set the **mandatory** `Name` property - how the Layout will be referenced in the dropdowns in Toolbar, ToolPanel and StatusBar.
  

The Name needs to be unique but also ideally easy to identify

The wizard will automatically set the Grid Type radio button to `Pivot`

Select which Columns should be [Row Grouped](https://www.adaptabletools.com/docs/handbook-grouping-rows/index.md) in the Pivot Layout.

Drag to set the order of the Row Grouping.

Only Groupable Columns with `enableRowGroup` set to *true* in the Grid Options definition are listed

Configure the Pivot Columns:

- Select Pivot Column **visibility** by clicking the checkbox next to the Column name
- Set Pivot Column **order** by dragging Columns up and down (using dotted icon)

AG Grid will dynamically create a column for each unique value in the Pivot Column.

Only Pivotable Columns are displayed (where `enableValue` is set to *true* in the AG Grid Column definition)

Configure which Columns in the Pivot Layout will display aggregations

Check the checkbox to set visibility and drag the item to set order.

Only Aggregatable Columns with `enableValue` set to *true* in the Grid Options definition are listed

Select which Columns will have Column Sorts applied to them.

Click the sorting icon to select ascending or descending sort order.

If you have set a [Custom Sort](https://www.adaptabletools.com/docs/handbook-custom-sorting/index.md) for that Column, AdapTable will use that automatically

Define which Filters should be applied to the Layout. These can be:
- Column Filters
- the Grid Filter

This is particularly useful if you wish to define filtering for a Layout which is not currently selected

Set options for managing [Row Selection](https://www.adaptabletools.com/docs/handbook-layouts-pivot-selecting/index.md) in the Layout, including creating a Selection Column.

The final step of the Wizard displays a Summary of all that was chosen in the above steps.

### FAQ

**I do not see any Columns I can pivot on in Pivot Columns section of Layout Wizard?**
AdapTable follows the same rules as AG Grid for what can be set as Pivotable in the UI.
This is any Column where `enableValue` is set to *true* in the Column's definition in AG Grid GridOptions.
