> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table.md).

# Pivot Table

Step-by-step Pivot Table tutorials for screen flows: summarize pipeline, add totals, group by date, let users filter, and export the result.

The Pivot Table summarizes records on a flow screen into grouped rows and columns, with totals and cells that open the records behind each number. These tutorials follow a sales team reviewing its opportunities: pipeline by region and stage, closed won revenue per quarter, then a summary users can filter and download.

{% hint style="info" %}
New to the component? Start with [Show a Pipeline Summary and Drill Into Any Cell](https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table/show-a-pipeline-summary-and-drill-into-any-cell.md), then keep the [Pivot Table reference](https://docs.avonnicomponents.com/flow/flow-components/pivot-table.md) open for every setting.
{% endhint %}

## Build the summary

Group the records, pick what to count or add up, and read the totals.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Show a Pipeline Summary and Drill Into Any Cell</strong></td><td>Open pipeline by region and stage, and the deals behind any number a manager clicks.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FGvct9XYpJLTYCipotdK3%2Fpivot-table-cover-show-a-pipeline-summary-and-drill-into-any-cell.png?alt=media">pivot-table-cover-show-a-pipeline-summary-and-drill-into-any-cell.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table/show-a-pipeline-summary-and-drill-into-any-cell.md">Show a Pipeline Summary and Drill Into Any Cell</a></td></tr><tr><td><strong>Show Totals, Subtotals and Stacked Summaries</strong></td><td>A grand total, subtotals per region, and deal value with deal count in one cell.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FvEUbCJBkZY30rqJ3bnjV%2Fpivot-table-cover-show-totals-subtotals-and-stacked-summaries.png?alt=media">pivot-table-cover-show-totals-subtotals-and-stacked-summaries.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table/show-totals-subtotals-and-stacked-summaries.md">Show Totals, Subtotals and Stacked Summaries</a></td></tr></tbody></table>

## Shape what users see

Group by period and let users narrow the numbers themselves.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Group a Pivot Table by Date</strong></td><td>Closed won revenue per year, quarter or month, with readable month names.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2Fh9p4Am3ms0mqtZeCwRln%2Fpivot-table-cover-group-a-pivot-table-by-date.png?alt=media">pivot-table-cover-group-a-pivot-table-by-date.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table/group-a-pivot-table-by-date.md">Group a Pivot Table by Date</a></td></tr><tr><td><strong>Let Users Filter a Pivot Table</strong></td><td>Header filters that slice the summary by lead source or stage on the flow screen.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FXgDSLsPAYz8bq2xmdKB9%2Fpivot-table-cover-let-users-filter-a-pivot-table.png?alt=media">pivot-table-cover-let-users-filter-a-pivot-table.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table/let-users-filter-a-pivot-table.md">Let Users Filter a Pivot Table</a></td></tr></tbody></table>

## Share the result

Take the summary out of the flow, or reload it in place.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Export a Pivot Table and Add Header Actions</strong></td><td>Export and Refresh buttons in the header: download Excel or CSV, reload the numbers.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FwXJaCEoXE6JQLjTxB6OA%2Fpivot-table-cover-export-a-pivot-table-and-add-header-actions.png?alt=media">pivot-table-cover-export-a-pivot-table-and-add-header-actions.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table/export-a-pivot-table-and-add-header-actions.md">Export a Pivot Table and Add Header Actions</a></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/flow/tutorials/components/pivot-table.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
