A2oz

How do I add a filter button in Tableau?

Published in Tableau Filtering 2 mins read

You can add a filter button in Tableau by creating a parameter and then using it to control the filter.

Here are the steps:

  1. Create a Parameter: In the Data pane, right-click on a blank space and select Create Parameter.
  2. Name and Configure: Give the parameter a meaningful name. Set the Data type to the type of data you want to filter (e.g., string, integer, date). Choose your Allowable values (e.g., list, range, etc.).
  3. Add a Filter: In the Filters pane, drag the field you want to filter onto the Filters shelf.
  4. Connect Parameter and Filter: On the Filter card, click the drop-down arrow next to the field, and select Show Parameter Control.
  5. Customize Button: You can customize the parameter control to look like a button. Change the title, choose a different button style, and adjust the layout as needed.

Example:

Let's say you want to filter your data by Region.

  1. You would create a parameter called "Region" with a list of values (e.g., "North", "South", "East", "West").
  2. You would then add a Region filter to the Filters shelf.
  3. You would connect the Region parameter to the filter by selecting Show Parameter Control on the Region filter card.

Now, you'll have a button that controls the filter. Clicking the button will change the filter to the selected value, updating your visualizations accordingly.

Related Articles