Tracking Fields
A tracking field is a field in a Type 2 slowly changing dimension that indicates which record is the most recent, or active, record. Type 2 dimensions can use several types of tracking fields.
Type 1 dimensions simply replace the existing record, so no earlier versions are retained. However, a Type 1 dimension can use a timestamp tracking field, such as a last-updated field, to indicate when the record was updated.
When you configure the Slowly Changing Dimension processor, you specify the tracking field name and type. You can specify as many tracking fields as appropriate.
The Slowly Changing Dimension processor supports the following types of tracking fields:
- Version Increment
- The processor increments each version of the record and places the latest version number in a user-defined field.
- Active Flag
- The processor uses a boolean
active
field. The most recent version is flagged astrue
and older versions are flagged asfalse
. - As Of / Start Timestamp
- The processor places the datetime in a user-defined field each time it writes each new version. The record with the most recent datetime is the most recent record.
- End Timestamp
- The processor uses a user-defined field to indicate when a record version is no longer used. The record with no end timestamp is the most recent record.