Global rep and role filter

One picker at the top of Analytics — All reps, Sales reps, Managers, or a named person — that re-scopes every chart on the page.

What it is

A single filter rather than a filter per chart. Choosing a role resolves that role's member ids from the roster and sends them with the request; choosing a person sends just that id. The roster used to build the options is captured from the first unfiltered response, so narrowing to one rep does not shrink the picker to that one rep.

Also called: filter analytics by rep · filter by role · just show my numbers

See it
Global rep and role filter
Won
30%
Avg cycle
13d
Pipeline
$631k
JanSep
The header controls: 'Filter by' select next to 'Range' select, with the scope line under the title reading 'Showing your team.' Header in AnalyticsView.tsx. Sample data — no customer information appears here.
How it works
  1. 1Options are built from the roster of people the caller is allowed to see.
  2. 2Role groups map to ids at request time — 'Sales reps' means everyone whose role is sales right now.
  3. 3The whole view re-fetches, so KPIs, funnel, dwell, throughput, heatmap and leaderboard all reflect the same filter.
  4. 4The server intersects whatever is requested with what the caller may see, so the filter can never widen access.
Why we built it

The component comment states the intent: 'The whole view (KPIs, funnel, dwell, throughput, heatmap, leaderboard) reflects this single fetch, so the filter is applied globally.' The roster capture exists because filtering narrowed visibleUsers downstream and the picker would otherwise collapse to the selected person after one use.

The problem
  • Per-chart filters let the page show a mix of scopes at once.
  • Selecting a rep used to strip the other reps out of the picker.
Sound familiar?
What you get
Impossible to misread a chart as team-wide when a rep is selected.
Role groups stay current automatically as people are added or change roles.

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →