Sub topic 6
Adding dashboard filters
Dashboard filters let viewers narrow what a dashboard shows without editing any component. This chapter assumes you can build a summary report, create a dashboard with chart, gauge, metric and table components, and understand the running user concept at a basic level.
What a dashboard filter does
A dashboard filter is a field and a set of values that Salesforce applies on top of the source reports behind the components. The viewer picks a value, such as Region = West, and every component whose report supports that field is re-run with the extra condition.
The filter does not change the report itself. It only adds a condition when the dashboard is refreshed. Components whose reports lack the filter field are left unfiltered.
Create a filter
- Open the dashboard in the dashboard editor.
- Click Add Filter.
- Choose a field. The list shows fields that are available across the reports used by the dashboard's components.
- Add one or more filter values. For an Opportunity Stage filter, you might add Prospecting, Qualification and Negotiation.
- Save the filter, then save the dashboard.
Each filter can hold several values. Viewers choose one of them, or a combination, from the filter bar at the top of the dashboard.
Filter values and operators
You choose the operator for each value. Common ones are equals, not equal to, contains, and greater than or less than for numbers and dates. You can also build a value that combines conditions, for example Amount greater than 50,000.
Give each value a clear display name. The viewer sees the name, not the logic behind it.
Limits to plan around
- A dashboard supports up to three filters.
- Each filter can have a limited number of values, so offer the choices that matter instead of every possible one.
- Filtering works on fields that exist in the underlying reports. If the fields of two reports differ, the filter applies only to the reports that share it.
- Filter conditions are applied on top of the report's own filters, so a filter can narrow results but cannot reveal records the report already excludes.
Check the current limits for your edition in the Salesforce help, because they change between releases.
Filters and the running user
A filter never widens visibility. The running user still decides which records are available to the dashboard. If the running user cannot see a record, no filter value will bring it back.
With a dynamic dashboard, each viewer applies the filter to their own data. Two people who both select Stage = Negotiation see different totals if their record access differs.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| A component ignores the filter | Its report does not include the filter field | Add the field to the report, or use a report type that has it |
| The filter returns empty components | The value matches no records the running user can see | Check the value logic and the running user's access |
| The expected field is missing from the list | None of the components' reports expose it | Change the reports or choose another field |
| Two filters give surprising totals | Filters combine, so records must meet all of them | Test each filter alone, then together |
A worked example
Suppose a sales dashboard has three components: a bar chart of open pipeline by stage, a metric for total open amount, and a table of the top deals. All three use Opportunity reports.
Add a filter on Opportunity Owner Region with the values West, East and Central. A manager who picks West sees all three components limited to West opportunities. The underlying reports stay unchanged, and other viewers are not affected by that choice.
If the table's report was built on Accounts instead, it would not respond to the Opportunity field, and you would need to rebuild it on an Opportunity report type.
Exercise
A dashboard has a filter on Opportunity Type, but one table component does not change when you select a value. Name the most likely cause and one fix.
Show answer
The table's source report does not include the Opportunity Type field, so the filter cannot apply to it. Add the field to the report, or rebuild the table on a report type that contains the field.
Exercise
A viewer selects the filter value Closed Won and a dynamic dashboard shows lower totals than their colleague sees. Why can this be correct?
Show answer
With a dynamic dashboard, the data is limited to what each viewer can see. The filter applies to each person's own records, so different access gives different totals.