This is how to create a Tableau action that lets you filter one worksheet from another—no manual copy-pasting needed. It works by embedding a filter reference in a button or menu link, so when you click it, the connected sheet updates instantly. You’ll need a basic understanding of Tableau worksheets, fields, and simple scripting, but no coding experience is required.
What You'll Need
- A Tableau Desktop or Server license (version 2023.2 or newer preferred)
- At least two connected worksheets (source and target)
- One dimension or measure field that both worksheets share or can be mapped to
- Basic familiarity with Tableau’s view layout and filter controls
- An internet connection (for Server) or local Tableau data source
Step-by-Step
- Prepare the source worksheet with a filter: On the worksheet where you want to trigger the filter, create a simple filter view:
- Drag a dimension or measure (e.g., "Region" or "Sales Amount") onto the Marks card to create a filter.
- Right-click the filter and choose Add as a Filter to make it a view-level filter.
Tip: If the field isn’t automatically shared, click the Show All Filters button in the Filter pane and drag the field to the Filter shelf.
- Create an action from the source worksheet:
- Right-click the filter view on the source worksheet and select Create Action from the context menu.
- In the Action Editor, name it (e.g., "Filter by Region") and select the Action Type as Apply Filter to Worksheet. Click OK.
Note: Labels may vary slightly by Tableau version. This process works in Desktop 2023.2+.
- Link the action to a target worksheet:
- On the second worksheet (where you want the filter to apply), ensure it contains the same dimension or shared field. For example, if the source has "Region" filtered, the target must also have a Region field.
- Right-click the target worksheet and select Create Action again. Choose Apply Filter to Worksheet and select the filter you want to control (not the source’s filter—this will loop back). Click OK.
- Now, in the Action Editor, click Select Targets. Under Target Worksheets, choose the source worksheet you created earlier. Click OK to confirm.
- Add an action trigger (button or menu):
- On the source worksheet, open the Tableau Menu (click the Tableau icon in the top-left corner). Go to View > Show Panel if the menu isn’t visible.
- Right-click the worksheet and select Insert > Action Button. Choose the action you created (e.g., "Filter by Region"). Name it (e.g., "Apply Region Filter").
- Drag the button to the canvas and resize it as needed.
Alternative: Use a dropdown menu by selecting Insert > Action Dropdown—this lets users choose which filter to apply.
- Test the connection:
- Click the action button on the source worksheet. The target worksheet should now update with the same filter applied.
- If not, verify the field names match exactly (case-sensitive) between worksheets. Go to View > References > Show Field Names & Data Sources to check.
Common Mistakes
- Field names don’t match: Worksheets must share the same field name (e.g., "Region" vs. "Region Name"). Use the Show Field Names & Data Sources menu to confirm. If they differ, you’ll need to adjust the data source or rename fields.
- Action loops back: If clicking the button does nothing, you’ve linked the wrong action to the target. In the Action Editor, double-check that the Source Target is set correctly (the target worksheet should be selected under Target Worksheets).
- Worksheet isn’t updating: The target worksheet must have the same filter type (e.g., a dimension filter won’t work if the target uses a measure). Ensure both worksheets use the same field type.
- Server-specific issues: If using Tableau Server, ensure the view is published and the action is saved there. Some permissions may require an admin review.
Tips
- Use parameter actions for flexibility: Instead of hardcoding a filter, create a parameter action that lets users choose values dynamically. This is useful for dashboards with multiple filter options.
- Avoid circular references: If worksheets filter each other in a loop (e.g., A filters B, and B filters A), the dashboard may freeze. Test actions on one worksheet at a time.
- Cache performance: For large datasets, enable Cache Data in the view’s properties to speed up filter updates. Go to View > Cache Data.
- Share filters across dashboards: If the source worksheet is part of a dashboard, the action will propagate to all sheets in that dashboard unless you restrict it.
Troubleshooting
If the action fails to trigger the filter, follow this order of checks:
- Restart Tableau: Close and reopen the application. Sometimes cached data causes glitches.
- Verify data connections: Right-click the data source in the Data pane and check for errors. Run Refresh Data if needed.
- Check the Action Editor: Open the action you created and confirm:
- The Action Type is set to Apply Filter to Worksheet.
- The Source Target is correctly linked to the target worksheet.
- Test in a new workbook: Duplicate the problematic workbook and recreate the action. Sometimes conflicts in custom extensions or data sources cause issues.
- Update Tableau: If the version is outdated, install the latest patch from Help > Check for Updates.
- Recreate the action: Delete and recreate the action from scratch. This sometimes resolves hidden errors.
For Server users: If the dashboard doesn’t update after clicking the action, check the Tableau Server Logs for errors. Ensure the view is published and the action is deployed to the server.
Frequently Asked Questions
Why won’t my action filter the target worksheet?
The most common reason is a mismatched field name or incorrect target selection. Double-check the field names between worksheets and ensure the action’s Target Worksheets list includes the correct sheet. If the field types differ (e.g., dimension vs. measure), you’ll need to adjust the target worksheet’s filter type.
Can I use this method with parameters?
Yes! Replace the direct filter with a parameter view. Create a parameter action that sets the parameter value, then link it to the target worksheet’s filter. This adds flexibility for users to choose values dynamically.
What if my dashboard freezes after clicking the action?
A circular reference (A filters B, B filters A) or too many simultaneous filters can cause lag. Test the action by isolating the source worksheet first. If the issue persists, disable Cache Data temporarily to check for conflicts.
Does this work with Tableau Server?
Yes, but the view must be published to the server, and the action must be deployed there. Some permissions may require admin approval. Logs are the best place to check for errors if the action doesn’t trigger.
Can I filter a view based on a calculated field?
Yes, but the calculation must include the field used in the target worksheet. For example, if the source has a calculated field like [Sales] * 1.2, the target must also reference the same underlying field (e.g., "Sales Amount").
How do I remove a filter action?
Right-click the action button or dropdown and select Delete. If you’re unsure which action to remove, open the Tableau Menu and go to View > Show Panel > Actions > [Action Name] to locate and delete it.