Summarize Pipeline by Stage and Quarter
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.
Every Monday, a sales manager asks the same question: how much pipeline sits in each stage, and in which quarter is it expected to close? A Pivot Table answers it on a Lightning Page, with one row per stage, one column per quarter, and the amount and number of deals in each cell.

Before you start
Opportunities with Amount, Stage and Close Date filled in. The steps use the standard fields only, so any org with opportunity data works.
Access to the Avonni Dynamic Components app. If you have never built a component, start with the Quickstart Guide.
Steps
Query this year's opportunities
In the data source part of the panel, create a new query. See Query if you have never built one.
Object: Opportunity.
Add two filter conditions: Close Date equals
THIS_YEAR, and Amount greater than0.Save the query.
Why: deals without an amount add rows to the counts and nothing to the sums. The Pivot Table query has no sort or limit settings.
Put the quarters in the columns
Add an item to Group Columns.
Field: Close Date.
Group: Year-Quarter. This setting appears as soon as the field is a date.
Note: Year-Quarter keeps the year in the header, so the columns stay correct when the query covers more than one year.

Add the amount and the number of deals
Add an item to Aggregations: Field Amount, Measure Sum (the default).
Add a second item: Field Id, Measure Count.
On the second item, turn on Custom Label and set Label to
Deals.
Each quarter now shows two values per stage: the pipeline and the number of deals. Their headers read Sum Amount and Count Deals.
Turn on the totals
Open the Content section.
Turn on Show Grand Total: a total row closes the table and a total column closes each row.
Leave Show Subtotals off. It needs a second group on rows or columns, which this table does not have.
Try Stacked Summaries on and off. It changes how Sum Amount and Count Deals sit next to each other in each quarter. Keep the layout your managers read faster.
Save and test
Click Save.
Place the component on a Lightning Page: in the Lightning App Builder, drag AX - Dynamic Component onto the page and select
Pipeline by Stage and Quarter. See Publishing your Dynamic Components.
The page shows the title and caption, the stages down the left side, and this year's quarters across the top. Each cell holds the summed amount and the number of deals for that stage and quarter, and the last row and column hold the totals.
Troubleshooting
Related tutorials
Group Revenue by Month: month columns with full month names.
Filter and Export a Pivot Table: header filters and an Excel export.
Was this helpful?
