You need just to go through the activities you do when you do this massive task manually, don’t let you block as you think you are not a technical person. EDT just helps you to klick to gather the tasks you are doing manually, so that in future they are done automated in seconds.
I executed some steps but not all of them, but it should give you an idea, so that you can complete it own your own. (in case you want to add transformations in between existing tasks make the connection arrow and than you select the transformation to be added). For specific topics you can ask.
What is done in the example:
First row: Data is read, ignored rows are removed and existing columns are renamed to target name
Second row: All Rows not existing with fixed values are set. The currency is added and the excange rate are taken form the exchange rate file with the current valid rates. (as I suggested before).
Then the Format Hardcover, etc is set (you need to check the mapping values) Further replace arguments can be added.
Split of the columns “PTD_avg_list_price” with 2 values is done. If I understand your explanation of the input data correctly. Resulting fields are renamed
Was a Return? Field is calculated
Unit Offer Price Local Currency is calculated, but I’m not sure if this is the intended transaction
Total Sale Local Currency calculated
A bunch of other calculations I did not executed, but the above should give you an idea how to proceed.
Unit Offer Price USD calculated. And afterwards start the little “trick” @Admin mentioned before.
The data set is now take unchanged and the Return QTY is set to NULL. In the second breakout only the records with a Return QTY > 0 are taken. For these the QTY sold is set to NULL. In three following steps the negative value for “Total Royalty Amount USD” is calculated and the interim column removed. Afterwards the to tables are merged again. And the duplicated rows are included. You need to check if the result insufficient in case all books are returned or if a further logic is required.
This should give you all ideas and help to complete on your own and write the result into a Excel file.
books 3.transform (20.1 KB)
Books_Input.csv (2.4 KB)
exchange rates.txt (27 Bytes)
Don’t forget to add notes as much as possible, that you don’t lose track on your logic later on and make use of the Comment field in the transformations:
It might be some effort to do the first implementation for all formats but in the long turn it will save a lot of time.