Reputation: 2544
I have a dataset where unknown, missing or otherwise NULL
-like values are coded as -9999999
. This is done in Dimensions and Measurement columns.
How can I instruct Tableau to treat -9999999
as NULL
in the whole dataset?
I have .csv
, Excel and .shp
files, but I'm trying to find out a general way to do this in Tableau.
I have created a calculated column with:
IFF([Column] == -9999999, NULL, [Column])
However, this is too tedious to do with all columns.
I have attempted to create aliases, however, this only works for Dimensions not Measures.
.csv
and editingI have exported my dataset as a .csv
file, then edited in a text-editor (replaced all occurrences of -9999999
with NULL
) and re-loaded the data from the .csv
file. This works, but feels sub-optimal. For example, .shp
files cannot be exported lossless to a .csv
file.
Upvotes: 1
Views: 129
Reputation: 4166
Tableau does not natively have functionality to treat all matching values in a dataset and convert them to NULL. You have a few options.
Upvotes: 1