Smart Systems for Home

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

Dropdown Filter in Tableau: Step-by-Step Setup Guide

· 5 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

To create a dropdown filter in Tableau, drag a dimension to the Filters shelf, right-click the filter in the view, and select Single Value (dropdown) or Multiple Values (dropdown). This transforms a bulky list of checkboxes into a compact menu, saving valuable screen real estate on your dashboard while allowing users to isolate specific data points.

What You'll Need

  • Tableau Desktop or Tableau Public installed on your computer.
  • A connected data source with at least one dimension (categorical data) that you wish to filter.
  • An active worksheet with a visualization already created.

Step-by-Step

  1. Identify Your Filter Dimension: Locate the field in the Data pane (the list of columns on the left) that you want the user to filter by, such as "Region," "Category," or "Year."
  2. Add to Filters Shelf: Click and drag that dimension from the Data pane and drop it directly onto the Filters shelf.
  3. Select Initial Values: A filter dialog box will appear. Select the values you want to be visible by default (e.g., "All" or a specific subset) and click OK.
  4. Show the Filter: Right-click the pill (the field) now sitting on the Filters shelf and select Show Filter. A filter control will appear on the right side of your worksheet.
  5. Change to Dropdown: By default, Tableau often shows a list of checkboxes. Click the small downward-facing arrow (the menu icon) in the top right corner of the filter control.
  6. Choose Dropdown Style: From the menu, select one of the following based on your needs:
    • Single Value (dropdown): Use this if the user should only be able to pick one item at a time.
    • Multiple Values (dropdown): Use this if the user needs to select several items or "All" from a collapsed list.
  7. Apply to Multiple Sheets: If you want this dropdown to control other charts on your dashboard, right-click the filter pill on the Filters shelf again, navigate to Apply to Worksheets, and choose either "All Using This Data Source" or "Selected Worksheets."
  8. Add to Dashboard: Drag your worksheet onto a Dashboard. The dropdown filter will carry over. You can now click and drag the filter to reposition it for better user experience.

Common Mistakes

  • Forgetting to "Apply to Worksheets": A common error is creating a filter on one sheet and wondering why the rest of the dashboard doesn't change. You must explicitly tell Tableau which other sheets the filter should control.
  • Using Measures instead of Dimensions: Dropdowns are designed for dimensions (categories). If you try to use a measure (numeric value), Tableau will provide a range slider instead of a dropdown list.
  • Overloading the List: Creating a dropdown for a field with thousands of unique values (like "Customer ID") can slow down performance and make the user experience frustrating.
  • Ignoring the "All" Option: When using "Single Value (dropdown)," the "All" option is removed. If your users need to see the aggregate total, ensure you use "Multiple Values (dropdown)."

Tips

  • Customize the Title: To make the filter more intuitive, right-click the filter title in the view, select Edit Title, and rename it to a question like "Which region would you like to view?"
  • Use "Only Relevant Values": If you have two dropdowns (e.g., Country and City), set the City filter to "Only Relevant Values." This ensures that when a user selects "USA" in the first dropdown, the second dropdown only shows US cities.
  • Formatting for Space: Use the "Floating" option on the dashboard instead of "Tiled" if you want to place the dropdown in a specific corner without shifting other charts.
  • Consistent Placement: Place your dropdown filters in a consistent location (usually the top or right side) across all dashboards in your workbook to maintain a professional feel.

Troubleshooting

If the dropdown filter is not behaving as expected, try these steps in order:

  • Filter not appearing: Ensure you have actually selected "Show Filter" from the right-click menu on the Filters shelf. If you are on a dashboard, check if the filter was accidentally hidden or moved behind another object.
  • Filter not affecting other charts: Right-click the filter pill on the Filters shelf and verify that "Apply to Worksheets" is set to the correct sheets. Note that the sheets must share the same data source or have a defined data relationship.
  • Dropdown is empty: This usually happens when multiple filters are conflicting. For example, if Filter A excludes all data that Filter B is trying to show, the dropdown may appear empty. Try clearing all filters to reset the view.
  • Slow performance: If the dropdown takes a long time to load, check the number of unique values in that field. Consider creating a "Group" or a "Set" to categorize the data into fewer, more manageable options.

Frequently Asked Questions

Can I create a dropdown filter for dates?

Yes, but dates often default to range sliders. To get a dropdown, you can change the date format to "Discrete" (blue pill) by right-clicking the date field before dragging it to the Filters shelf.

How do I make the dropdown filter a search box?

In the filter menu (the small arrow on the filter control), select "Wildcard Match." This replaces the list with a text box where users can type to search for specific values.

Can I have a dropdown that selects multiple values by default?

Yes. Use the "Multiple Values (dropdown)" option and, in the initial filter setup dialog, check the boxes for the specific items you want selected when the dashboard first opens.

Is there a way to limit the number of items in a dropdown?

Tableau does not have a "limit" setting for dropdowns, but you can create a calculated field to group "Other" values together for any items that fall below a certain frequency, keeping your list clean.

Why does my dropdown show "Null" as an option?

This happens when your data source contains empty cells in that column. To remove it, right-click the filter pill on the Filters shelf, select "Edit Filter," and uncheck the "Null" value.