Hello,
I have an original table and api result that I monitor with a ChangeDetector. I created changes {} and do a ListExploder to return each record and write to a DIM table. Now I want to add the dates ValidTo and ValidFrom to the DIM so I can keep a history of those records.
Short said, which each Update output from ChangeDetector I need to create a new record and change the dates (in the previous with the same id)
ID AttrColumn ValueColumn
1 AttrValue1 1
2 AttrValue2 2
DIM_id AttrChanged ValidFrom ValidTo Active
1 ValueColumn 2021-02-01 2021-02-12 N
1 ValueColumn 2021-02-12 DefaultValue Y
Hope it's clear..
Any ideas?
Thanks!