Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Pivot Table with open pipeline grouped by region down the side and by stage across the top, with a Total row and column
Open pipeline by region and stage, with totals on both axes.

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

1

Add the Pivot Table to a screen

  1. In Setup, open Flows, click New Flow and choose Screen Flow.

  2. Add a Screen element and label it Pipeline Review.

  3. In the Components panel, search for pivot and drag Avonni Pivot Table onto the screen.

  4. With the component selected, click Open Component Builder.

The flow needs no Get Records: the Pivot Table runs its own query.

2

Point the query at open opportunities

In the Properties tab, under the data source:

  1. Set Object API Name to Opportunity. Query is already selected: it is the only data source this component offers.

  2. 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).

3

Group the rows by region and the columns by stage

Scroll to Data Mappings.

  1. Under Group Rows, add an item and set Field to Region.

  2. 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.

4

Sum the amounts

  1. Under Aggregations, add an item.

  2. Set Field to Amount and keep Aggregation on Sum.

  3. Turn on Custom Label and enter Pipeline as the Label.

Aggregation item opened in the property editor with Amount as field, Sum as aggregation, Custom Label on and Pipeline as label
Amount summed, with Pipeline as its label.
5

Add a title and a grand total

  1. At the top of the Properties tab, turn on Show Grand Total. The table gets a Total row and a Total column.

  2. Open the Header group and enter Open pipeline by region as the Title.

Subtotals need a second grouping on an axis. Show Totals, Subtotals and Stacked Summaries adds them.

6

Let the manager open any number

  1. Open the Detail Rows group and turn on Detail Rows.

  2. Optional: turn on Enable Inline Edit so she can correct an amount in place.

7

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.

Pivot Table with one cell selected and a panel below listing the opportunities behind that amount
A clicked cell lists the deals behind the number.

Troubleshooting

The grid is empty

Check Object API Name, and that Group Rows, Group Columns and Aggregations each have a field. If no open opportunity matches the filter, the table shows its no results message.

Was this helpful?