To filter out 0 values in Tableau, the fastest method is to drag the measure you want to filter into the Filters shelf, select "At Least," and set the value to 0.00001 (or 1 for integers). This removes all zeros and negative numbers from your visualization immediately. Depending on whether you want to remove zeros globally, for a specific view, or based on a complex calculation, you can use a standard filter, a calculated field, or a data source filter.

What You'll Need

  • Tableau Desktop or Tableau Public installed.
  • A connected data source containing numerical measures.
  • A worksheet with at least one dimension and one measure already plotted to see the effect of the filter.

Step-by-Step

Depending on your goal, choose one of the following three methods. Note that menu labels may vary slightly depending on your version of Tableau or regional settings.

Method 1: Using the Standard Filter Shelf (Quickest)

  1. Locate the measure containing the zeros in the Data pane on the left side of the screen.
  2. Click and drag that measure directly onto the Filters shelf.
  3. A dialog box will appear asking how you want to filter the data. Select At Least from the list of options.
  4. In the value box, enter a number slightly higher than zero (e.g., 0.01) if you have decimals, or enter 1 if you are working with whole integers.
  5. Click OK. Tableau will now exclude all records where the value is 0 or less.
  6. If you only want to remove zeros but keep negative numbers, select Special in the filter dialog and look for options, or move to Method 2 for more precision.

Method 2: Using a Calculated Field (Most Precise)

  1. Go to the Data pane and click the small downward arrow next to the search bar, or right-click in the empty space of the pane.
  2. Select Create Calculated Field....
  3. Give your calculation a name, such as "Zero Filter".
  4. In the formula editor, enter the following logic: . This tells Tableau to return "True" for any value that is not zero and "False" for any value that is exactly zero.
  5. Click OK. You will see a new dimension (with a T or boolean icon) in your Data pane.
  6. Drag this new "Zero Filter" field onto the Filters shelf.
  7. When the filter list appears, check the box for True and uncheck False.
  8. Click OK. This ensures that only non-zero values are rendered in the view, regardless of whether they are positive or negative.

Method 3: Using a Data Source Filter (Global Removal)

  1. Click on the Data Source tab in the bottom-left corner of the Tableau window.
  2. In the top-right corner of the screen, look for the Filters section and click Add.
  3. Click Add... again in the pop-up window.
  4. Select the field containing the zeros from the list of columns and click OK.
  5. Choose the Range of Values option.
  6. Adjust the minimum slider to be slightly above 0, or use the At Least setting if available in your version's data source filter menu.
  7. Click OK and then OK again to close the filter window.
  8. This method removes the zeros from the entire workbook, meaning they won't appear in any worksheet or dashboard you create from this data source.

Common Mistakes

One of the most frequent errors is confusing Null values with Zero values. In Tableau, a Null is a missing piece of data (an empty cell), whereas a Zero is a recorded numerical value. If you apply a "At Least 1" filter and the zeros are still appearing, it is highly likely those values are actually Nulls. To fix this, you must specifically filter out Nulls using the "Non-null values" option in the filter menu or use the ZN() function to convert Nulls to Zeros before filtering.

Another mistake is applying a filter to a Dimension instead of a Measure. If your number is categorized as a dimension (blue icon), Tableau treats it as a label rather than a quantity. You cannot use "At Least" or "Range of Values" on a dimension. You must first right-click the field in the Data pane and select Change Data Type > Number (decimal) or Number (whole) to treat it as a measure.

Users also often forget the Order of Operations. If you use a Table Calculation (like a Percent of Total) and then try to filter out zeros using a standard Dimension filter, the zero values might still influence the calculation before they are hidden from view. In these cases, you need to use a Table Calculation Filter (using the LOOKUP() function) to hide the zeros without changing the underlying math.

Tips

If you want to keep the zeros in your data for calculation purposes but simply don't want them to show up as labels on your chart, don't use a filter. Instead, right-click the measure on the Marks card, select Format, and under the Numbers dropdown, create a Custom format. Enter #,##0;-#,##0;. The third section of a custom format (after the second semicolon) defines how zeros are displayed. By leaving it blank, Tableau will render zeros as empty strings, effectively hiding them while keeping the data in the view.

For those working with massive datasets, prefer the Data Source Filter. Filtering at the source reduces the amount of data Tableau has to process in the local cache, which can significantly improve the rendering speed of your dashboards.

When using calculated fields to filter zeros, consider using the ABS() function if you want to filter out values that are effectively zero but have tiny floating-point decimals (e.g., 0.00000001). A calculation like ABS([Measure]) > 0.001 is more robust than a strict != 0 check.

Troubleshooting

The zeros are still there after filtering: First, check if the values are actually Nulls. Right-click the field, select Create > Calculated Field, and use ISNULL([Field]). If it returns True, you are dealing with Nulls. Use the filter menu to select "Non-null values" instead of a numerical range.

My totals are wrong after filtering: This happens because a standard filter removes the data from the aggregation entirely. If you need the zeros to be part of the average or sum but just not visible on the axis, use the Custom Formatting tip mentioned above. This hides the visual representation without removing the record from the math.

The filter is slowing down my dashboard: If you have millions of rows, a calculated field filter can be slow because it evaluates every row. Try moving the filter to the Data Source level or, if you are using a SQL database, create a Custom SQL query to filter out the zeros before the data even reaches Tableau.

I can't find the "At Least" option: This usually means your field is being treated as a String (text) rather than a Number. Look at the icon next to the field name in the Data pane. If it is an "Abc" icon, right-click it, select Change Data Type, and choose Number (decimal). The numerical filter options will then appear.

Frequently Asked Questions

How do I filter out zeros and nulls at the same time?

The most efficient way is to create a calculated field: [Measure] != 0 AND NOT ISNULL([Measure]). Drag this to the Filters shelf and select "True".

Will filtering zeros affect my Grand Totals?

Yes. A standard filter removes the rows from the data set, so any Grand Total or Summary calculation will only include the non-zero values.

Can I filter zeros for only one specific chart but not others?

Yes. Simply drag the filter to the Filters shelf of that specific worksheet. Do not right-click the filter and select "Apply to All Using This Data Source" unless you want it to affect every chart.

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

A Dimension filter treats "0" as a category (like "Red" or "Blue") and removes that specific category. A Measure filter treats "0" as a value and allows you to use ranges, such as "Greater than 0".

How do I filter out zeros in a Tableau Prep flow?

In Tableau Prep, add a Filter step after your data source and use the formula [Field] != 0 to clean the data before it is published to Tableau Desktop.