Follow along with the sample packaged workbook found in the Attachments section of this article. All instructions begin from the "Original" worksheet.
ZN(SUM([Amount]))
To view the steps showed in the video below, please expand the above section.
Note: the video has no sound.
This option will replace NULL data and data that has been filtered out of the view with zeros.
ZN( IF [Date] >= [Date Parameter] THEN [Amount] END )
To view the steps showed in the video below, please expand the above section.
Note: the video has no sound.
This option will replace NULL, missing, or filtered out data with zeros.
ZN(LOOKUP(SUM([Amount]),0))
To view the steps showed in the video below, please expand the above section.
Note: the video has no sound.
This option will show zeros when the data is NULL, missing or filtered out of the view.
ZN( IF [Stage] = [Stage (Stage Master List)] THEN [Amount] END )
To view the steps showed in the video below, please expand the above section.
Note: the video has no sound.
Edit the original data source to add in the missing data.
Depending on the use case, the best solution may be to add in dummy records with NULL measures, and then follow the instructions in option 1 above.
There are three main scenarios that may create blanks that would need to be replaced with zeros:
All options will replace NULL data with zeros. Options 3, 4, and 5 will replace missing data with zeros. Options 2, 3, and 4 will replace filtered out data with zeros.
It may be possible to show additional rows/columns in the view with the Analysis > Table Layout > Show Empty Rows/Columns option; However, no data can be written into these rows.
If the crosstab only has one measure, then all NULL values can be replaced in the formatting options. See Format null values
Vote on the Tableau Idea - PREP Clean Step - Menu Option to replace Null values
001458028
9 KB
108 KB
10 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.