Last Modified Date: 13 Nov 2023
Environment
Tableau DesktopResolution
CLICK TO EXPAND SOLUTION
Scenario 1: Expressions containing a field with a NULL value may return NULL values
CLICK TO EXPAND SOLUTION
Scenario 2: Conditions containing a NULL value will return NULL values
CLICK TO EXPAND SOLUTION
Scenario 3: CASE or IF statements without ELSE statements will return NULL values when no conditions are True
CLICK TO EXPAND SOLUTION
Scenario 4: Expressions including multiple mutually exclusive CASE or IF statements may return NULL values
CLICK TO EXPAND SOLUTION
Scenario 5: Converting a non-numeric string into a number
CLICK TO EXPAND SOLUTION
Scenario 6: Expressions dividing by zero will return NULL
CLICK TO EXPAND SOLUTION
Scenario 7: DATE() or DATEPARSE() may return NULL
Cause
- For scenarios 1, 2 & 4, any calculation that includes NULL will return NULL because NULL values are not numeric values and thus require special handling.
- For scenario 3, Tableau adds ELSE NULL to any logical calculation that does not have an ELSE statement. This means if all conditions are False, then NULL will be returned.
- For scenario 5, any number divided by zero is mathematically undefined. For consistency, Tableau displays the value as a NULL. For more information, see this Wikipedia article Division by zero
Additional Information
Force a 0.0 when there is no recordReplace NULL or Missing Data With Zeros or Existing Data
Data Aggregation in Tableau
Date Calculated Fields Return Nulls After Extract Refresh
Grand Totals Are Blank For Calculated Field That Include ATTR() Including Fields That Blend Data From Multiple Data Sources
IIF Function using ATTR Returns Unexpected NULL Results
Blending Data on Non-Matching Date Fields
Converting String to Date or Datetime Type Results in Null Value
Thank you for providing your feedback on the effectiveness of the article.
Open new Case
Continue Searching
Knowledge Base
Community
Product Help
Training and Tutorials
Related Links
Results 1-3 of 688