How to replace Null literals in Tableau

preview_player
Показать описание
In this silent video, you'll learn how to replace the word "Null" (Null literal) with a different string or blank space.

- - - - - - - - - - - - - -

Replace a null literal in the primary or only data source
1. Select Analysis and then Create Calculated Field
2. Name the field, enter the following calculation, and click OK:
IFNULL([Field Containing The Null Literal], 'string to replace the null literal')
For example,
IFNULL([Customer Name], '')
3. Use the new field you created in place of the original field.

Replace a null literal in a secondary data source (when data blending)
1. From the view, select the primary data source.
2. Select Analysis and then Create Calculated Field
3. Name the calculation, enter the following formula, then click OK:
IFNULL(ATTR([Data Source Name].[Field Name])), 'string to replace the null literal')
For example,
IFNULL(ATTR([Sample - Coffee Chain (Access)].[State]), '')
4. Use the new field you created in place of the original field.

Related solutions:

- - - - - - - - - - - - - -

Рекомендации по теме