Interactive Data Filtering
Interactive Data Filtering lets you narrow a Tableau view to the business population you want to examine. A manager might select a sales territory, compare several customer segments, or click a store to inspect its orders. Effective filtering requires more than adding a control: you need to decide which values qualify, which worksheets respond, and what happens when a selection is cleared.
Define the rule and choose a control
A filter is a rule that determines which data are included in a view. For example, including the Online channel restricts the analysis to matching records. A worksheet filter changes the data used in that view without deleting records from the original source.
To create a categorical filter in Tableau Desktop, drag a field such as Channel to the Filters shelf and select the values to include. Choose Show Filter from the field's menu to expose an interactive filter card. The card lets a viewer change the selection without editing the worksheet design.
Choose the control to match the decision the viewer needs to make.
Viewer requirement | Suitable control | What the viewer changes |
|---|---|---|
Examine one territory at a time | Single value list or dropdown | One included territory |
Compare several segments | Multiple values list or dropdown | Several included segments |
Adjust a sales threshold | Quantitative filter control | A minimum, maximum, or range |
Explore details by clicking a mark | Filter action | Values passed from a source sheet |
Include and exclude rules have opposite meanings. Including Wholesale keeps matching data; excluding Wholesale keeps data outside that selection. State the intended meaning clearly in the control's title.
Filter at the intended level
A general dimension filter, such as Region equals Central, restricts contributing records before ordinary aggregation. An aggregate measure filter tests a summarized value at the view's level of detail. In a view with one mark per store, a filter on SUM(Sales) tests each store's total.
Suppose a store has several small orders. Its total can exceed a minimum sales threshold even when none of its individual orders reaches that threshold. Filtering individual sales values before aggregation therefore answers a different question from filtering store totals afterward.
When adding Sales to Filters, check the aggregation you select. SUM answers a total-sales question; AVG answers an average-sales question. Also check the fields defining each mark. Adding another grouping field can change the groups whose totals are tested.
Control worksheet scope and evaluation order
A new worksheet filter normally applies only to its current worksheet. Use Apply to Worksheets to share it deliberately. Selected Worksheets is useful when operational views should respond together while a company benchmark remains unchanged. All Using This Data Source is broader and can affect worksheets elsewhere in the workbook.
Evaluation order matters when one rule should define the population for another. A context filter establishes an earlier subset for dependent filters, including a Top N filter. To find the top five products within a selected department, add the Department filter to context before evaluating the product Top N rule. An ordinary Department selection combined with a Top N rule can instead show the intersection of that department and the overall top products.
Make dashboard interactions predictable
A filter action sends values from a source sheet to target sheets. In Dashboard > Actions, add a Filter action, choose the source and targets, and select a trigger such as Select. Selected Fields lets you pass a specific identifier, such as Store ID, to the matching target field.
Choose the clearing behavior explicitly. Show all values removes the action's restriction when the selection is cleared, while other active filters still apply. Leave the filter preserves the previous restriction. Exclude all values makes the target empty until another selection supplies values.
Test a typical selection, an empty combination, and a cleared selection. An empty view may simply mean that no records satisfy all active rules.
What to remember
- Match the control to the viewer's decision.
- Distinguish record restrictions from aggregate thresholds.
- Check worksheet scope and context dependencies.
- Define and test selection-clearing behavior.
Example: Explore regional store sales
A retailer has the complete order data below for one reporting period. Sales are recorded in Canadian dollars. A Tableau dashboard contains Store Overview, with one mark per store displaying SUM(Sales), and Order Detail, which lists individual orders. Both worksheets use the same primary data source, and no filters or actions are initially active.
Order ID | Store | Region | Sales (CAD) |
|---|---|---|---|
T201 | Cedar | West | 900 |
T202 | Cedar | West | 700 |
T203 | Pine | West | 500 |
T204 | Pine | West | 650 |
T205 | Elm | East | 1,200 |
T206 | Elm | East | 1,100 |
The manager wants to choose one region, display stores whose regional-period sales total at least CAD 1,500, and click a displayed store to inspect its individual orders.
a) Configure an interactive Region filter that affects both worksheets, and select West.
Drag Region to the Filters shelf on Store Overview and include West. From the Region filter's menu, choose Show Filter and display a Single Value dropdown so the manager can choose one region at a time.
Choose Apply to Worksheets > Selected Worksheets and select Store Overview and Order Detail. Both worksheets now retain West records. Cedar and Pine contribute data; Elm's East orders are excluded from these views without being deleted from the data source.
b) Add the sales threshold to Store Overview only. Determine which store marks remain and explain why filtering individual order amounts would give a different result.
Drag Sales to the Filters shelf on Store Overview, select Sum as the aggregation, and set At Least to CAD 1,500. Keep this filter local to Store Overview.
The Region rule first limits the contributing records to West. With one mark per store, calculate each remaining store's total:
Cedar satisfies the minimum because CAD ________ is at least CAD 1,500. Pine does not, because CAD ________ is below CAD 1,500. Store Overview therefore displays Cedar only, with CAD 1,600 in sales.
None of the West orders individually reaches CAD 1,500. Filtering individual order amounts against that minimum before aggregation would remove all West orders and incorrectly produce an empty overview for the manager's store-total question.
c) Configure clicking Cedar to filter Order Detail. State what appears after the click and after the selection is cleared.
Open Dashboard > Actions and add a Filter action. Set Store Overview as the source, Order Detail as the target, and Select as the trigger. Choose Selected Fields and map Store to Store. In these data, store names uniquely identify stores. Choose Show all values for clearing the selection.
Clicking Cedar sends its Store value to Order Detail. Combined with Region equals West, the target shows orders T201 and T202, worth CAD 900 and CAD 700 respectively. Their total is CAD 1,600, matching the Cedar overview mark.
Clearing the selection removes the action's store restriction. The shared Region filter still restricts Order Detail to West, so orders T201 through T204 reappear. These include Pine's orders because the CAD 1,500 aggregate filter applies only to Store Overview. Elm's East orders remain excluded from Order Detail.
A service manager is filtering response times measured in minutes in Tableau Desktop. Match each measure-filter option to its behavior. In this context, null represents a missing or unknown response time.
Offers explicit choices for missing values, non-missing values, or all values.
Keeps numeric results less than or equal to a specified maximum.
Keeps numeric results greater than or equal to a specified minimum.
Keeps numeric results between a specified minimum and maximum, including both endpoints.
Special
At Most
Range of Values
At Least
A Tableau worksheet has one mark per customer and displays SUM(Sales). Its complete order data are shown below. There are no other filters or calculations.
Customer | Order ID | Sales (CAD) |
|---|---|---|
Asha | R101 | 180 |
Asha | R102 | 170 |
Noah | R103 | 310 |
Noah | R104 | 20 |
You add an aggregate SUM(Sales) filter using At Least CAD 340. Which customer marks remain?