I need to implement slowly changing dimension (SCD) type 2 logic in Azure Data Factory. The row expiration logic is based on a field in the source table called 'last_modified_date' For a new record, this value should be the 'start_date', and for a changed record, it should be the 'end_date'.
How to achieve this in ADF?
I followed this youtube video but it would not work if the expiry date is coming from the source but works fine with the current_date as start date.
end_datecolumn withlast_updated_valueof source csv, you can change the broadcast settings of exist transformation as shown in below image.isactiveas 0 andend_dateaslast_modified_dateThis way, you can add the value of
last_modified_datein the enddate column.