# Unpivot

Unpivot takes many columns in a table and lines them up into a single column called "value". A new column will be created called "variable", which holds the value of the column header in the original table.

For example, in a table with multiple value columns:

![](https://files.readme.io/829244e-New_Workbook.png)

Unpivot will create a narrower table with variable and value pairs:

![](https://files.readme.io/0f334eb-New_Workbook.png)

### Options

| Selection                           | Description                                                                                                 |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **ID Columns**                      | The columns which should *not* be broken out into rows. Each unpivot tool needs at least one **ID column**. |
| **Variable Column Name** (optional) | The default name for the variable column is "variable". Fill this in to rename that column.                 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cascade.io/cascade/tools/transform/unpivot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
