- Posts: 204
- Thank you received: 1
Clone Rows of Begin and End Start Dates
6 years 6 months ago #16428
by imchaz
Clone Rows of Begin and End Start Dates was created by imchaz
If I have an excel record that I am reading in that looks like. I will have about hundreds of records that look similar.
I would like to clone this record with a range of dates from start to end to look like this
I know there is a CLONE ROW object that i can use. I see this link:
www.etl-tools.com/wiki/aetle:processing_...rking_with_clone_row
But I am still not sure how this works. Can you give me additional guidance?
Thanks,
Chuck
Code:
ServiceProviderID Original CircuitID beginning_service_date Ending_Service_Date
----------------- -------- ----------- ---------------------- -------------------
673 0 1814 2015-11-01 2015-11-05
I would like to clone this record with a range of dates from start to end to look like this
Code:
ServiceProviderID Original CircuitID Date Range
----------------- ----------- ----------- ----------
673 0 1814 2015-11-01
673 0 1814 2015-11-02
673 0 1814 2015-11-03
673 0 1814 2015-11-04
673 0 1814 2015-11-05
I know there is a CLONE ROW object that i can use. I see this link:
www.etl-tools.com/wiki/aetle:processing_...rking_with_clone_row
But I am still not sure how this works. Can you give me additional guidance?
Thanks,
Chuck
Please Log in or Create an account to join the conversation.
6 years 6 months ago - 6 years 6 months ago #16429
by imchaz
Replied by imchaz on topic Clone Rows of Begin and End Start Dates
I was able to get a working example on my end. It looks a bit different on my Original Post. It works for the most part with the exception of when outputting the Date Range in the WRITER. The Date is not being written to the column of the spreadsheet. Can you take a look and see what is happening?
I am attaching my ExtractDateRange.ats file for your review.
My input is Transform.xlsx
I am only processing the records where the ORIGINAL / REVISED column has a value of 0.
Then, I am cloning the records which share the same columns of
Row,
Company ID
Original /Revised
Cause Number
Circuit ID
Beginning Service Date
Ending Service Date
And I create column as an output called BetweenDaysCount which count the difference of days between my Begin and End Service Dates.
When I get to my Transformation Editor, I am outputting a Date column which increments from the Begin all the way to the End Service Date. For some reason, the output value is not showing up in my TRANSFORMDATES.xlsx file.
Thoughts?
-Chuck
I am attaching my ExtractDateRange.ats file for your review.
My input is Transform.xlsx
I am only processing the records where the ORIGINAL / REVISED column has a value of 0.
Then, I am cloning the records which share the same columns of
Row,
Company ID
Original /Revised
Cause Number
Circuit ID
Beginning Service Date
Ending Service Date
And I create column as an output called BetweenDaysCount which count the difference of days between my Begin and End Service Dates.
When I get to my Transformation Editor, I am outputting a Date column which increments from the Begin all the way to the End Service Date. For some reason, the output value is not showing up in my TRANSFORMDATES.xlsx file.
Thoughts?
-Chuck
Last edit: 6 years 6 months ago by imchaz.
Please Log in or Create an account to join the conversation.
6 years 6 months ago #16430
by imchaz
Replied by imchaz on topic Clone Rows of Begin and End Start Dates
Any ideas why the "Date" column that I am output is not appearing in the WRITER? This is frustrating as it shows the output going to it when I click on the GEAR icon (Process Data) but when running it, it does not get outputted. It disappears?
Thanks,
Chuck
Thanks,
Chuck
Please Log in or Create an account to join the conversation.
6 years 6 months ago #16431
by admin
Mike
ETL Architect
Replied by admin on topic Clone Rows of Begin and End Start Dates
We are currently working on this issue.
www.etl-tools.com/forum/advanced-etl-pro...sformation-tsql.html
we spend all day yesterday and the day before.
Once it is completed., tested, documented and new release published, we will start looking the issue you reported in this tread.
www.etl-tools.com/forum/advanced-etl-pro...sformation-tsql.html
we spend all day yesterday and the day before.
Once it is completed., tested, documented and new release published, we will start looking the issue you reported in this tread.
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
6 years 6 months ago #16432
by imchaz
Replied by imchaz on topic Clone Rows of Begin and End Start Dates
Cool. Thank you so much.
Please Log in or Create an account to join the conversation.
6 years 6 months ago #16451
by admin
Mike
ETL Architect
Replied by admin on topic Clone Rows of Begin and End Start Dates
The issue you reported was corrected in the latest release
5.9.3.22
+ Improved: Setup has an option to download Tableau client now
+ Added : SQL Lookup Transformation Function
- Fixed : Scrolling issues
- Fixed : Change date dynamic bug
5.9.3.22
+ Improved: Setup has an option to download Tableau client now
+ Added : SQL Lookup Transformation Function
- Fixed : Scrolling issues
- Fixed : Change date dynamic bug
Mike
ETL Architect
The following user(s) said Thank You: imchaz
Please Log in or Create an account to join the conversation.