Smart Systems for Home

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

How to Add a Filter in Tableau: Step-by-Step

· 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

Adding a filter in Tableau is straightforward: drag the field you want to filter by onto the Filters shelf, then choose the values to keep. That single action works in both Tableau Desktop and Tableau Public, and it is the foundation for every other filtering technique in the tool. Before you start, make sure you have a worksheet open with at least one field on Rows or Columns and a data source connected. No special add-ons or licences are needed beyond a standard Tableau installation.

What You'll Need

  • Tableau Desktop, Tableau Public, or Tableau Cloud/Server with edit permissions on a workbook.
  • A connected data source and an open worksheet with at least one dimension or measure already placed on the view.
  • Basic familiarity with dragging fields onto shelves (Rows, Columns, Filters, Marks).

Step-by-Step

  1. Open your worksheet. In Tableau Desktop, double-click the sheet tab at the bottom. In Tableau Public or Cloud, open the workbook and select the sheet. Confirm the data source is connected (look for a checkmark next to the connection in the Data pane).
  2. Locate the field to filter on. In the Data pane on the left, find the dimension or measure you want to use. For example, to show only sales from a specific region, find the Region dimension.
  3. Drag the field onto the Filters shelf. The Filters shelf sits above the Marks card, to the right of the Pages shelf. Drop the field there. If you do not see the Filters shelf, go to Analysis > Filters (or right-click the field and choose Add to Filters) to show it.
  4. Choose the filter type and values. A dialog box appears. For a dimension, you will typically see options like General, Wildcard, Condition, and Top. Select General, then tick the checkboxes for the members you want to keep. For a measure, you will see a range slider or a list of values; set the minimum and maximum, or choose At Least, At Most, etc.
  5. Click OK. The view updates immediately. The field now appears on the Filters shelf, and the filter is applied to the worksheet.
  6. Show the filter control (optional). To let viewers change the filter themselves, right-click the field on the Filters shelf and choose Show Filter. A filter card appears on the right side of the view. You can change its display style (single value, multiple values, wildcard, etc.) by clicking the drop-down arrow on the filter card.
  7. Apply the filter to other sheets (optional). By default, a filter applies only to the current worksheet. To apply it to all sheets that use the same data source, right-click the field on the Filters shelf and choose Apply to Worksheets > All Using This Data Source. To apply to selected sheets, choose Selected Worksheets and pick them.
  8. Test the result. Change a filter value and confirm the view updates. If you added a filter control, try switching between values to ensure it behaves as expected.

Common Mistakes

  • Filtering on the wrong field. Dragging a measure that has been aggregated (like SUM(Sales)) onto Filters can produce unexpected results. Use the original field name without the aggregation prefix, or use a calculated field if you need to filter on an aggregate.
  • Forgetting to apply the filter to other sheets. A filter on one sheet does not automatically affect others. Use Apply to Worksheets to avoid inconsistent dashboards.
  • Using a filter instead of a parameter. Filters restrict data; parameters let users swap values or calculations. If you need dynamic switching, a parameter is often the better tool.
  • Ignoring context filters. When you have multiple filters, the order matters. Context filters are applied before other filters. If a filter seems to have no effect, check whether it is being overridden by a context filter or a filter on a different sheet.
  • Not checking the data type. Filtering a date field offers different options (range, relative date, etc.) than filtering a text field. Make sure you pick the right filter type for the data type.

Tips

  • Use the Wildcard tab in the filter dialog to match patterns (e.g., contains "North") when you have many members.
  • For date filters, the Relative Date option is handy for showing only the last N days, months, or years without hardcoding dates.
  • Right-click a filter card and choose Format Filter to change its appearance, or Edit Filter to adjust the values.
  • To filter out nulls, drag the field to Filters and in the General tab, tick Exclude next to Null.
  • Use Top N filters (e.g., Top 10 by Sales) to focus on the highest performers without manually selecting members.
  • When building dashboards, add filter controls to the dashboard as well, so viewers can interact without opening individual sheets.

Troubleshooting

  • The filter does not appear to change the view. Check that the field is actually on the Filters shelf (not just in the view). Also verify that the filter is not set to All values. If you have a context filter, try removing it temporarily to see if it is overriding your filter.
  • The filter control is missing. Right-click the field on the Filters shelf and ensure Show Filter is checked. If the filter card is hidden behind other cards, drag it to a visible position.
  • Filter applies to only one sheet. Use Apply to Worksheets to extend it. Remember that applying to all sheets using the data source will affect every sheet, which may not be desired.
  • Cannot filter on an aggregated measure. Tableau does not allow filtering on an aggregate directly from the Filters shelf. Create a calculated field that returns the aggregate (e.g., SUM([Sales])) and use that as a filter, or use a table calculation filter.
  • Performance slows down with many filters. Too many filters, especially on large data sets, can degrade performance. Consider using extracts, context filters, or reducing the number of filters.
  • Filter values are not what you expect. Check the data source for nulls, typos, or inconsistent casing. Use the Wildcard filter or clean the data before filtering.

Frequently Asked Questions

How do I add a filter to a dashboard in Tableau?

Filters added to a worksheet appear on the dashboard if you show the filter control. To add a filter directly to a dashboard, select the dashboard, then use the Filters shelf in the dashboard's own layout (if available) or add a filter control from a sheet. In most cases, you add the filter to a sheet and then show the filter card on the dashboard.

Can I filter multiple fields at once?

Yes. Drag each field onto the Filters shelf individually. Each filter is applied in sequence. You can also use the Apply to Worksheets option to propagate multiple filters at once.

What is the difference between a filter and a parameter?

A filter restricts which data rows are included in the view. A parameter is a user-controlled value that can be used in calculations, filters, or reference lines. Parameters do not filter data by themselves; they must be used in a calculated field or filter condition.

How do I remove a filter?

Right-click the field on the Filters shelf and choose Remove, or drag it off the shelf. If you only want to hide the filter control, right-click the filter card and choose Remove from Dashboard or Hide Card.

Why does my filter show all values even after I select some?

Check that you clicked OK or Apply after making selections. Also ensure the filter is not set to All Values. If the filter is on a dimension with many members, use the Wildcard or Condition tab to narrow down.

Can I filter on a calculated field?

Yes. Create the calculated field, then drag it onto the Filters shelf just like any other field. The filter dialog will show options based on the calculated field's data type.