Show a Pipeline Summary and Drill Into Any Cell
Build a screen flow that shows open pipeline by region and stage, with a grand total, and lists the deals behind any number a manager clicks.
A sales manager reviews open pipeline every Monday. She wants one grid: regions down the side, stages across the top, the sum of Amount in each cell. When a number looks off, she clicks it and sees the deals that make it up, without leaving the screen.

Before you start
Opportunities with an Amount and a Stage.
A field to group by region. This tutorial uses a custom picklist named Region on Opportunity. Any picklist works the same way, for example Type or Lead Source.
Permission to create and run screen flows.
Steps
Add the Pivot Table to a screen
In Setup, open Flows, click New Flow and choose Screen Flow.
Add a Screen element and label it
Pipeline Review.In the Components panel, search for
pivotand drag Avonni Pivot Table onto the screen.With the component selected, click Open Component Builder.
The flow needs no Get Records: the Pivot Table runs its own query.
Point the query at open opportunities
In the Properties tab, under the data source:
Set Object API Name to
Opportunity. Query is already selected: it is the only data source this component offers.Under Filters, add a condition: Closed Equals
false.
Build the conditions here in the query editor. A filter set from a flow text variable does not reach the detail rows you turn on later (see the Pivot Table troubleshooting).
Group the rows by region and the columns by stage
Scroll to Data Mappings.
Under Group Rows, add an item and set Field to Region.
Under Group Columns, add an item and set Field to Stage.
Want closing months across the top instead of stages? Use Close Date with a Date Grouping, as shown in Group a Pivot Table by Date.
Add a title and a grand total
At the top of the Properties tab, turn on Show Grand Total. The table gets a Total row and a Total column.
Open the Header group and enter
Open pipeline by regionas the Title.
Subtotals need a second grouping on an axis. Show Totals, Subtotals and Stacked Summaries adds them.
Save and test
Close the Component Builder, save the flow and click Debug (or Run).
The screen shows one row per region and one column per stage, each cell holding the sum of Amount, with a Total row and column. Regions and stages are sorted alphabetically, and a cell with no deals shows $0.00. Click a cell: a panel opens under the grid with the deals behind that number, their name and amount, and the region and stage they came from. The panel numbers its rows.

Troubleshooting
Related tutorials
Show Totals, Subtotals and Stacked Summaries: subtotals per region and two measures in one cell.
Group a Pivot Table by Date: closing months or quarters instead of stages.
Let Users Filter a Pivot Table: header filters so each manager narrows the grid herself.
Export a Pivot Table and Add Header Actions: download the grid to Excel and add a Refresh button.
Was this helpful?

