What's a Null?

A null value isn't just zero or empty text, they represent missing or unknown data. Not handling them correctly can lead to inaccurate reporting or confusing dashboards.

There are 2 types of nulls in Tableau:

  1. Strict (data-level) nulls - these are missing records directly inside the datasource (for example a customer not providing a phone number)
  2. Sparse (domain/layout) nulls - these are missing intersections across dimensions (for example a product had no sales in Q3 so no row exists in the database for that combination)

So how do we manage them? One thing we can do is create calculations.

ISNULL([Field]):

Returns true if the field contains a null value, otherwise returning false. This can help identify where the nulls are in the data.

ZN([Field]):

This stands for "Zero Null". It converts null numeric values into 0. If a value exists, it leaves it unchanged. Helpful for handling and replacing nulls.

IFNULL([Field], [Replacement Value]):

Replaces a null with a designated value - it works on strings, dates and numbers. Also helpful for handling and replacing nulls.

When nulls show up in your Tableau worksheet, you have a few options on how to handle them depending on how you want your visual to look.

The quickest place to start is the grey "X nulls" indicator badge in the bottom right corner of the worksheet. Clicking on this lets you immediately filter those records out of your view or hide the badge if you already plan on handling the missing values elsewhere.

If missing data is causing broken lines in your time-series line charts, you don't need to rewrite your data to fix the visual gaps. By right-clicking the measure on the Rows or Columns shelf and choosing "Format", you can navigate to the "Special Values" section under the "Pane" tab. Here, Tableau lets you decide how those missing points render on the screen. You can choose to leave the default gaps, force Tableau to plot missing points at a zero value on your axis, or select "Connect Lines" to draw a smooth, continuous line directly between the valid data points.

For text tables, KPI cards and tooltips, leaving blank spaces or displaying the word "null" looks unpolished to the end user. You can fix this by wrapping your fields in simple calculations before adding them to your view. For numeric fields, wrapping your field in ZN() will display a 0 when a value is missing. For text fields, using IFNULL() will replace blank entries with a readable default label.

You may encounter empty cells in a grid view where specific combinations of dimensions just doesn't exist in the database, for example a product had no sales in a specific region in a specific month. Standard functions like ZN() won't work here because there is no row in the underlying data for Tableau to evaluate. To fill these spaces, go to the top menu and click "Analysis", then "Table Layout" and check "Show Empty Rows" or "Show Empty Columns". Once Tableau generates the visual grid, you can use the table calculation ZN(LOOKUP(SUM[Field]), 0) to force those empty layout intersections to display as zero on the dashboard.

Top Tips:

  1. Fix nulls at the source when possible.

While Tableau makes it easy to replace or mask nulls, doing heavy data cleaning in the workbook can impact performance. If a null is caused by messy raw data or a poor join/relationship in your data source, clean the data to fix it before it reaches your workbook.

  1. Beware of the average trap.

Replacing nulls with 0 changes how averages are calculated. AVG() calculations sum all non-null values and divides only by the number of non-null rows. AVG(ZN()) forces missing entries to 0 which increases the row count denominator and pushes the average down.

  1. Don't let the end user see raw "null" text.

Whether it's a field header, a dashboard filter dropdown or a hover tooltip, text saying "null" signals an unfinished dashboard. Always alias, group or wrap null values in calculated fields so your end product looks professional and polished.

Nulls don't have to break your visualisation or mess up your metrics. By understanding the difference between data-level nulls and layout-level nulls you can choose the right tool for the job. Mastering these techniques ensures your Tableau dashboards remain accurate and performant, no matter how messy your raw data may be.

Author:
Holly Phillips
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2026 The Information Lab