> For the complete documentation index, see [llms.txt](https://docs.fabricplan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fabricplan.com/planning-sheets/how-tos/infobridge/data-transformations/pivot-table.md).

# Use pivot table

## Pivot data in a planning sheet

Use *Pivot Table* to reorganize dimensions and measures and configure aggregations for totals and subtotals.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FE1okgumlGai6oUh6EMWb%2Fpivot-table-interface.png?alt=media&amp;token=50995f7e-e54b-4803-8ac0-6263d3f9f339" alt=""><figcaption></figcaption></figure>

### Convert row dimensions and column dimensions

Move dimensions between the **Rows** and **Columns** buckets to change how data is displayed.

For example, convert the **Region** column dimension into a row dimension.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FnxXHLGAyBi4QcwTRe29e%2Fregion-column-dimension.png?alt=media&amp;token=9abee648-1e78-4a6f-85e4-b9db21919e8d" alt=""><figcaption></figcaption></figure>

1. Open **Pivot Table**.
2. Drag **Region** from **Columns** to **Rows**.

The dimension is displayed as a row dimension instead of a column dimension.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FjqpgvSA2vNJimDr6N7ZQ%2Fcolumn-to-row-conversion.png?alt=media&amp;token=8f500a29-8ad8-46fd-9162-668c9759e281" alt=""><figcaption></figcaption></figure>

### Configure measure aggregations

Configure aggregations for numeric measures when totals and subtotals are enabled.

Supported aggregation types include:

* Sum
* Average
* Minimum
* Maximum

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FRRw26mB1iF38VJcwENQO%2Faggregation-type.png?alt=media&amp;token=36fff358-8c1e-4e1b-9966-b670f148f4e7" alt=""><figcaption></figcaption></figure>

1. Enable totals or subtotals.
2. Select the measure to aggregate.
3. Select an aggregation type.

For example, apply **Sum** to the **Profit** measure and **Average** to the **Sales** measure.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FVoRFSaM3u5W8q9i2KwmY%2Faggregated-measures.png?alt=media&amp;token=fa67c2f9-9d31-4faf-b520-53282ef6a5ae" alt=""><figcaption></figcaption></figure>

### Convert dimensions into measures

Convert a text dimension into a measure by moving it to the **Values** bucket.

1. Open **Pivot Table**.
2. Drag the dimension to **Values**.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FIiQIBT1LHHFVg5f2shfU%2Fconvert-dimensions-into-measures.png?alt=media&amp;token=1e716da5-1643-4dd1-841d-3672d6a43b31" alt=""><figcaption></figcaption></figure>

The dimension is converted into a measure and can be aggregated with other values.

### Concatenate text values

Use **Concat** to combine text values from multiple rows into a single value by using a delimiter.

For example, concatenate all accounts within a segment while retaining the underlying information.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FcN4TReQxextBy8EbJ4uK%2Fconcatenating-text-measures.png?alt=media&amp;token=b7f91690-85d7-4d26-a029-22830d11ee30" alt=""><figcaption></figcaption></figure>

1. Drag the text field to the **Values** bucket.
2. Select **Concat** as the aggregation type.
3. Specify a delimiter.

The resulting value provides a summarized view of the underlying records and can be used in downstream visuals.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FoMHhmygLC1MFTP8xbqVU%2Faggregated-text-measure.png?alt=media&amp;token=50ca6234-297a-4650-a3f6-7e47bd060063" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/how-tos/infobridge/data-transformations/pivot-table.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
