Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: Generation of Time dependent records with one source-field

$
0
0

Hi Thomas,

 

I don't have a coding example available but the logic should not be too difficult.

 

You have to sort the data package on key fields in ascending order and time field in descending order. Then you loop over the data package.

You need variables to record the previously processed key fields in order to detect a new combination and to start the Valid To with 31/12/9999. You also need a variable to record the previously processed Valid From date. The Valid To date for the next time slice of the same combination will be the previously processed Valid From date + 1 day.

 

Note: if the data load would split up in more than one data package, then you will need Semantic Grouping on the key fields in order to keep the groups in the same data package.

 

Best regards,

Sander


Viewing all articles
Browse latest Browse all 3354

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>