Time for action – generating a range of dates and inspecting the data as it is being created
In this section, you will generate a rowset with one row by date in a date range.
Tip
As you progress, feel free to preview the data that is being generated even if you're not told to do so. This will help you understand what is going on. Testing each step as you move forward makes it easier to debug and craft a functional transformation.
- Create a new transformation.
- From the Input group of steps, drag to the canvas a Generate Rows step.
- Double-click on the step and fill in the grid as shown in the following screenshot:
- Note that you have to change the default value for the Limit textbox. Close the window.
- From the Transform category of steps, add a Calculator step, and create a hop that goes from the Generate Rows step to this one.
- Double-click on the Calculator step and add a field named
diff_dates
as the difference betweenend_date
andstart_date
. That is, configure it exactly the same way...