Smart Systems for Home

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

Tableau How to Filter: A Complete Guide to Data Filtering

· 6 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 filter data in Tableau, drag a dimension or measure from the Data pane and drop it directly into the Filters shelf. From there, you can select specific values, set a range, or create a condition to include or exclude specific data points from your visualization. This process allows you to isolate trends, remove noise, and focus your analysis on the most relevant subsets of your dataset.

What You'll Need

  • Tableau Desktop, Tableau Public, or Tableau Cloud installed and running.
  • A connected data source (Excel, CSV, SQL database, etc.) with at least one worksheet open.
  • A basic understanding of the difference between Dimensions (categorical data) and Measures (numerical data).

Step-by-Step

  1. Identify the Field to Filter: Look at the Data pane on the left side of the screen. Decide whether you want to filter by a category (Dimension) or a numeric value (Measure). For example, if you want to see sales only for the "West" region, you would look for the "Region" dimension.
  2. Apply the Filter: Click and hold the desired field from the Data pane, then drag it and drop it onto the Filters shelf, which is located to the left of the canvas and above the Marks card.
  3. Configure the Filter Type: Once you drop the field, a dialog box will appear. The options available depend on the data type:
    • For Dimensions: You will see a list of all unique members of that field. You can check the boxes for the specific items you want to keep in the view, or select "All" to start and then uncheck the items you wish to exclude.
    • For Measures: You will be asked how you want to filter the numbers. You can choose "At least" (minimum), "At most" (maximum), "Between" (a specific range), or "Average." After selecting the method, you can set a static range or a dynamic range based on the current data.
  4. Finalize the Selection: Click "OK" to apply the filter. You will notice that the marks on your visualization update immediately to reflect only the data that meets your criteria.
  5. Show the Filter as an Interactive Control: To allow other users to change the filter themselves, right-click the pill now sitting on the Filters shelf and select "Show Filter." A control panel will appear on the right side of the worksheet.
  6. Customize the Filter Control: Click the small drop-down arrow on the newly appeared filter control in the view. Here you can change the format from a list of checkboxes to a "Single Value (dropdown)", "Wildcard Match", or a "Slider" for dates and numbers.
  7. Apply Filter to Multiple Worksheets: If you have a dashboard with several charts, you likely want one filter to control all of them. Right-click the filter pill on the Filters shelf, select "Apply to Worksheets," and then choose either "All Using This Data Source" or "Selected Worksheets."

Common Mistakes

One of the most frequent errors is confusing the Filter Shelf with the Marks Card. Placing a field on the Color or Detail marks card might change how data is visualized, but it does not remove data from the calculation. Only the Filters shelf actually excludes data from the underlying view.

Another common mistake is applying filters in the wrong order. Tableau follows a specific "Order of Operations" (the Query Pipeline). For instance, Extract Filters happen first, followed by Data Source Filters, Context Filters, Dimension Filters, and finally Measure Filters. If you use a Fixed Level of Detail (LOD) expression, a standard Dimension Filter will not affect it because LODs are calculated before Dimension Filters. To fix this, you must right-click the filter and select "Add to Context," which pushes the filter higher up the pipeline.

Users also often forget to check for "Null" values. When you filter a dimension, Tableau may list "Null" as an option. If you uncheck it, you are removing rows where that data is missing. If you don't realize this is happening, your totals may not match your raw data source, leading to confusion during auditing.

Tips

Use Wildcard Matching for Large Lists: When dealing with thousands of unique values (like customer names), clicking checkboxes is impossible. Use the "Wildcard Match" filter type to allow users to type in a fragment of a name to find the record they need.

Leverage Relative Date Filters: For time-series data, avoid selecting specific dates. Instead, use the "Relative Date" option in the filter dialog. This allows you to set the view to "Last 3 Months" or "This Year," meaning the dashboard will automatically update as time passes without requiring manual adjustments.

Create Top N Filters: Instead of manually picking the top performers, use the "Top" tab in the Dimension filter dialog. You can set the filter to show the "Top 10" by a specific measure (e.g., Top 10 Products by Profit), which makes your analysis dynamic as performance changes.

Combine Filters with Sets: For more complex logic, create a "Set" first (right-click a dimension > Create > Set) and then drag that Set to the Filters shelf. This allows you to create a binary "In/Out" filter based on complex conditions that a standard filter cannot handle.

Troubleshooting

If your data disappears entirely: This usually happens when you have multiple filters that are mutually exclusive. For example, if you filter for "Region = East" and "City = Los Angeles," the view will be blank because Los Angeles is not in the East. Check your filter combinations and remove them one by one to identify the conflict.

If the filter is not affecting a specific chart: Ensure the filter is applied to the correct worksheet. Right-click the filter pill and check the "Apply to Worksheets" menu. If the charts use different data sources, you must create a "Cross-Database Relationship" or a "Blending" link on the common field for the filter to work across both.

If the filter is slow to load: Large datasets can struggle with complex filters. Try changing the filter to a "Single Value Dropdown" instead of a "Multiple Values List" to reduce the number of queries sent to the database. Alternatively, convert the filter to a "Context Filter" to reduce the size of the data Tableau has to process for subsequent filters.

If the filter values are outdated: If you are using a Tableau Extract, the filter will only show values present at the time of the last refresh. Go to the Data menu and select "Extract > Refresh" to bring in the most recent data from your source.

Frequently Asked Questions

Can I filter data based on a calculation?

Yes. You can create a Calculated Field (e.g., a boolean expression like [Sales] > 1000) and drag that calculated field into the Filters shelf. Select "True" to keep only the records that meet the condition.

What is the difference between a Dimension filter and a Measure filter?

Dimension filters act on discrete categories (like Country or Category) and allow you to pick specific members. Measure filters act on continuous numbers (like Profit or Quantity) and allow you to set ranges or thresholds.

How do I create a filter that depends on another filter?

This is called a "Cascading Filter." To do this, right-click the second filter in the view and select "Only Relevant Values." Now, when you change the first filter (e.g., Category), the second filter (e.g., Sub-Category) will only show items that belong to that category.

Can I filter out a specific value without selecting everything else?

Yes. In the filter dialog, you can select all values and then uncheck the one you want to exclude. Alternatively, if you are using a set or a calculated field, you can write a formula that explicitly excludes a value using the NOT operator.

How do I clear all filters at once?

While Tableau doesn't have a single "Clear All" button by default, you can create a worksheet action or a button using a parameter that resets the filters, or manually right-click each filter pill on the shelf and select "Remove."