> 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/dynamic-components/tutorials/components/pivot-table.md).

# Pivot Table

Step-by-step tutorials to build, read, filter and export an Avonni Pivot Table, each built on the same pipeline of opportunities.

The [Pivot Table](https://docs.avonnicomponents.com/dynamic-components/components/pivot-table.md) summarizes Salesforce records in a cross table, with totals a manager would otherwise pull from a report. These tutorials all use the same pipeline of opportunities, so you can follow them in order or jump to the one you need.

{% hint style="info" %}
Start with [Summarize Pipeline by Stage and Quarter](https://docs.avonnicomponents.com/dynamic-components/tutorials/components/pivot-table/summarize-pipeline-by-stage-and-quarter.md): it builds the table the other tutorials extend.
{% endhint %}

## Build the summary

Choose what goes down the rows, across the columns and in the cells.

<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>Summarize Pipeline by Stage and Quarter</strong></td><td>Build a pivot table of this year's opportunities, stages down the side and quarters across the top, so a manager reads pipeline without running a report.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F6xxITJqBPbdcZmOssdKg%2Fpivot-table-cover-summarize-pipeline-by-stage-and-quarter.png?alt=media">pivot-table-cover-summarize-pipeline-by-stage-and-quarter.png</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/pivot-table/summarize-pipeline-by-stage-and-quarter.md">Summarize Pipeline by Stage and Quarter</a></td></tr><tr><td><strong>Group Revenue by Month</strong></td><td>Group closed won revenue by owner and by month with the date grouping of the Pivot Table, month names in full, so a sales director sees who closed what when.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FSAlizGMCoLmou7tzrjQr%2Fpivot-table-cover-group-revenue-by-month.png?alt=media">pivot-table-cover-group-revenue-by-month.png</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/pivot-table/group-revenue-by-month.md">Group Revenue by Month</a></td></tr></tbody></table>

## Share the numbers

Narrow the table and take it to a meeting.

<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>Filter and Export a Pivot Table</strong></td><td>Add lead source and owner filters to a pipeline pivot table, then an Export button, so a manager narrows the summary and takes it to a meeting in Excel.</td><td><a href="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F9iXCsaT3aTcCd98Ycvby%2Fpivot-table-cover-filter-and-export-a-pivot-table.png?alt=media">pivot-table-cover-filter-and-export-a-pivot-table.png</a></td><td><a href="https://docs.avonnicomponents.com/dynamic-components/tutorials/components/pivot-table/filter-and-export-a-pivot-table.md">Filter and Export a Pivot Table</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/dynamic-components/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.
