Let Users Filter a Pivot Table
Add header filters to a Pivot Table so users slice the summary by lead source or stage on the flow screen, with menus that only offer values that exist.
In a pipeline review, a sales manager wants to see only the deals that came from the web, then only those in negotiation, without asking an admin for a new screen. Header filters put a menu per field above the Pivot Table. Each pick reruns the summary on the matching records.

Before you start
A screen flow with a Pivot Table on Opportunity, built as in Show a Pipeline Summary and Drill Into Any Cell.
The fields users will filter by. Here, Lead Source and Stage, two picklists.
Steps
List the fields users can filter by
Select the Pivot Table on the screen and click Open Component Builder. In Data Mappings, open Filters and select Lead Source, then Stage.
The query filters of the Data Source decide which records the table can ever show, and users cannot change them. The fields in Filters become menus in the header that users set themselves, within those records.
Offer only the values that exist
The Stage picklist defines values such as Prospecting, Closed Won and Closed Lost, even when no deal on this screen carries them. Picking one would empty the table.
In the Filter group of the Properties tab, turn on Use Record Picklist Values. The menus now list only the picklist values found in the records.

Narrow each filter by the others
In the same Filter group, turn on Use Cascading Filter Values. After a user picks a value in one menu, the other menus only offer values that still match.
Example: the manager picks
Webunder Lead Source. The Stage menu now offersQualification,Proposal/Price QuoteandNegotiation/Review, and dropsNeeds Analysis, since no web deal sits at that stage.
With Use Cascading Filter Values on, Use Record Picklist Values is ignored: the options already come from the records.
Choose how the filters sit in the header
By default, each field in Filters gets its own button in the header. Once a value is picked, the button label shows it after the filter mode, for example Stage (Equals Negotiation/Review).
Turn on Display As Popover to gather every filter behind one button that opens a popover instead.
One button per filter (default)
Display As Popover on
What users see
One button per field, with the picked value
One button, all filters inside
Best for
One or two filters with short values
Several filters, or long values
When the header runs out of room
Buttons that no longer fit move behind a funnel icon
Nothing moves

Save and test
Save the flow and click Debug. The header shows Lead Source and Stage buttons. Open Stage: it lists only the four stages the deals carry.
Pick Web under Lead Source. The table reruns on the web deals only, and the Stage menu now offers three stages. Pick Negotiation/Review: the table shows only web deals in negotiation, and the line under the title reads Filtered by Lead Source, Stage.
Troubleshooting
Related tutorials
Show a Pipeline Summary and Drill Into Any Cell: build the Pivot Table this page starts from.
Group a Pivot Table by Date: summarize the filtered deals by quarter or month.
Export a Pivot Table and Add Header Actions: put an Export button next to the filters.
Was this helpful?
