Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Tableau Filter Actions as a Button: How-To Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can turn a Tableau filter action into a button by building the action on a worksheet that looks like a button, then placing that sheet on a dashboard and setting the action to run on select. Tableau does not have a native "button" object that fires a filter action, so the reliable method is a small text or shape sheet used as the trigger. Clicking a mark on that sheet passes the chosen value to the target sheet and filters it. This works in Tableau Desktop and in views published to Tableau Cloud or Tableau Server, and the labels you see can differ slightly by version.

What You'll Need

  • Tableau Desktop (or Tableau Public) with a workbook containing at least one source sheet and one target sheet.
  • A field you want to filter by, such as Region, Category, or a date part.
  • A dashboard you can edit, so you can add the button sheet and wire up the action.
  • Basic familiarity with dragging fields to shelves and using the Marks card.

Step-by-Step

  1. Decide what the button should filter. Pick the field and the specific value the button represents. For example, a button labeled "West" that filters every other sheet to Region = West. If you want several buttons (one per region), you will create one sheet that shows all the values as marks, not a separate sheet per button.
  2. Create the button sheet. Open a new worksheet. Drag your filter field (for example, Region) onto the Columns shelf or the Rows shelf. You should see one mark per value.
  3. Change the mark type to Text. On the Marks card, open the mark type dropdown and choose Text. Drag the same field onto the Text property on the Marks card so each mark displays its value as a label. This gives you a row of clickable words that read like buttons.
  4. Optionally style the marks as shapes. If you prefer rounded rectangles or custom graphics, set the mark type to Shape and assign a shape per value, or use a text label on a colored background. Keep it simple: the goal is a clear, clickable target.
  5. Name the sheet something obvious such as "Button - Region" so you can find it later. Right-click the sheet tab and choose Rename.
  6. Build or open your dashboard. Create a new dashboard or open an existing one. Add your target sheet (the chart or table that should be filtered) to the dashboard first.
  7. Add the button sheet to the dashboard. Drag the button sheet from the Sheets list onto the dashboard. Place it where users will naturally look, usually top-left or above the chart. Size it small so it reads as a control, not a chart.
  8. Open the Actions dialog. In Tableau Desktop, go to the Dashboard menu and choose Actions. The Actions dialog lists existing actions and lets you add new ones.
  9. Add a Filter action. Click Add Action and choose Filter. Give it a clear name like "Region Button Filter".
  10. Set the source sheet. In the Source Sheets section, select only the button sheet. This is the critical step: if you leave it on "All Sheets", clicking anywhere on the dashboard will trigger the filter. Untick everything except the button sheet.
  11. Set the target sheets. In the Target Sheets section, choose the sheets that should respond. Usually this is every sheet except the button sheet itself, so the button does not filter itself out of view.
  12. Choose the run behavior. Under "Run action on", select Select. This makes a single click apply the filter, which is what makes it feel like a button. Hover would fire the filter as the mouse passes over, which is harder to control.
  13. Map the fields. In the Target Filters area, confirm the field mapping. Tableau usually matches same-named fields automatically. If the source and target use different field names, set the mapping manually so the selected value passes through correctly.
  14. Decide on clearing behavior. Tick "Clearing the selection will" and choose either Show all values or Leave the filter. Show all values makes a second click on the same button reset the view, which most users expect from a toggle.
  15. Click OK twice to close the dialogs, then test in the dashboard. Click a value on the button sheet and confirm the target sheet filters. Click the same value again to confirm it clears, if you enabled that.
  16. Publish or save. Save the workbook, or publish to Tableau Cloud or Tableau Server if the dashboard is shared. Filter actions carry over to published views, but viewers need the appropriate permissions on the underlying data.

Common Mistakes

  • Leaving the source set to All Sheets. The action then fires from every mark on the dashboard, which feels broken and unpredictable.
  • Targeting the button sheet itself. The button can filter itself out of existence, leaving users with no way to reset the view.
  • Using Hover instead of Select. Hover actions trigger constantly as the cursor moves and make the dashboard feel twitchy.
  • Mismatched field names. If the source field is "Region" and the target uses "Sales Region", the automatic mapping fails and nothing filters. Map it by hand.
  • Too many marks on the button sheet. A button strip with thirty categories is not a button, it is a list. Limit it to a handful of values or use a parameter-driven approach instead.
  • Forgetting to test after publishing. Permissions and data source filters can behave differently for viewers than for the author.

Tips

  • Use a highlight action alongside the filter action if you want the selected button to visibly change color, so users can see which filter is active.
  • Keep button labels short and consistent in case and length; mixed formatting looks messy on a dashboard.
  • If you need a true reset control, add a small "All" mark to the button sheet by including an "All" value in the data, or use a parameter action that sets the field to a wildcard.
  • Hide the button sheet's title and axis headers so it reads as a control strip rather than a chart.
  • Test the dashboard at the sizes your users will see, including on tablets, since small marks become hard to click on touch screens.

Troubleshooting

The click does nothing. Reopen Dashboard > Actions and check the source sheet is the button sheet only, the run behavior is Select, and the field mapping is populated. A blank mapping is the usual culprit.

The whole dashboard disappears. The button sheet is probably included in the target sheets and is filtering itself out. Remove it from the targets.

Only some sheets filter. Any sheet not listed as a target will ignore the action. Add it to the target list.

It works in Desktop but not after publishing. Check that viewers have permission to the data source and that no data source filter blocks the values. Republish and test with a viewer account.

The filter will not clear. Set the clearing behavior to Show all values, and make sure users know to click the same mark again.

If that did not work, delete the action and rebuild it from scratch. A clean action with one source sheet and explicit targets resolves most stubborn cases faster than editing an old one.

Frequently Asked Questions

Can I make a real button object in Tableau?

No. Tableau dashboards do not include a button object that runs a filter action. The standard approach is a small worksheet styled to look like a button, with a filter action attached to it.

Does this work in Tableau Public?

Yes. Filter actions and dashboard actions are available in Tableau Public, and the published view behaves the same way for visitors.

Can one button filter several sheets at once?

Yes. List every sheet you want affected in the Target Sheets section of the action.

How do I show which button is currently selected?

Add a highlight action on the same source sheet, or use a parameter to drive a color change. A filter action alone does not visually mark the selected button.

Why does the filter apply when I click anywhere on the dashboard?

The action's source is set to All Sheets. Change it so only the button sheet is the source.

Can viewers use the button on a phone?

Yes, if the dashboard layout is set up for phone. Keep the button marks large enough to tap, and test the phone layout in Tableau Desktop before publishing.