Reputation: 493
How do I add calculated field for this?
I have table in tableau in following format (connected through redshift and every day 100000 rows are appended for the same ID1 and ID2, and sometimes new values for ID1 and ID2 are also added):
Value in Date Field 1
could either be Null
or some date value
(which is appended every day). What I want is whenever for specific combination of ID1
and ID2
, Date Field 1
is not Null
, I want that value to be copied to other rows also as follows:
How do I do it?
Note: I got an answer for this question under SQL tag but it is with UPDATE table method: SQL: Copy values for unique keys from one row to other
But I specifically need answer for tableau also to add calculated field.
Upvotes: 0
Views: 167
Reputation: 141
You can create a calculated field using IF THEN statement as in the images below to look for a Match:
You can see the data reflects the new Match field as well:
Upvotes: 0