Exporting summarised instances
Forums
Good morning,
I have a summarisation report with 54 records each of those has a number of instances that renges from few thousands to more than two millions.
Now, what I need to do is to export each row in a separate csv or txt file that will be sent to the relevant audit unit.
Is there any script that could help me in having typefile needed and automate the export process?
Those 54 entities could become more than 100 at the end of the year and I need to automated the process.
Thank you very much for your help.
Vito
Hi Brian,
Hi Brian,
Yes you are correct on both points:
1) I would like to have a separate csv file for each row
2) I was just thinking about a recursive use of extractions from the summarised files but I am not sure how to get the data that actually makes it. I would like to use a "for i in .... then" type of function with ith being the name of entity the data are summarised over. Or if it is easier to run the "for i in ... then" for all the entities in the "entity name" field.
I am not so familiar with programming yet and less of all with Ideascripting.
Hi Vito,
Hi Vito,
is your question in conjunction with the data you posted here: http://ideascripting.com/forum/importing-messy-txt-data?
Why? Only to have a better
Why? Only to have a better idea what you are doing.
That means when you summarize that data by client / client ID with IDEA as a result you will find one row to each client / client ID, the number of items and the summed up amount.
Do you want to export only that single line for each client / client ID with the related amount OR do you need all the bookings per client / client ID?
Hi Brian,
Hi Brian,
I modified the script you shared according to my own scenario. What I am trying to do is summarising the general ledger by account number with its summation of balance. Then, I want to extract details of the specified account if its summation of balance greater than zero. I used another extraction function to use "greater than zero" criteria but I still need to use this criteria to write the result as greater than zero or not. In the Sub Main part, I could not write that properly. I got the Syntax Error related to any criteria with integer. Could you help me to find proper syntax for this issue?
Additional note: I am planning to use this script for multiple accounts when this problem is solved, so I did not cancel Array function in the script.
You may find my script attached and thanks in advance for your help.
Gamze
Account column is not numeric
Account column is not numeric and the script is working in the way I shared with you. But, I got the syntax error when I tried to run "lRecords" part which is shown as a comment in the script. I want to count row numbers in EXTRACTION1 table and if there is a row, I want to populate message box. I guess I am missing something in that part and did not figure it out.
Hello Vitopiepoli,
Hello Vitopiepoli,
When you are talking about exporting are you talking about exporting the transactions? So for the item that has two million transactions you would like to create a separate file and then save as a CSV?
I don't know of any scripts that would do this but I think one could be built fairly easily. First step would be to use key value extraction to break-up the main file into its separate components. The key value extraction has a limit of 500 items but since your is less than 100 there wouldn't be a problem. Next step is to have a loop to export the files into a csv file. Is this what you are looking for?