Dealing with NULLs
When working with calculated fields, it is important to understand what NULL
s are and how to deal with fields that have NULL
values.
A NULL
is a missing value. It is an indeterminate value. A NULL
is not:
- a zero
- a space
- an empty string
Whenever there is an operation between a field that has a value and a field that has a NULL
, the result is always a NULL
. When you add 1 to nothing, what is the result? Indeterminate. When you concatenate a first name to an unknown value, what is the result? Indeterminate—we don't know.
Let's take the following data set:
Once you connect this Excel file to Tableau, the initial connection screen will look ...
Get Tableau 10 Business Intelligence Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.