Include Gross Total at the end of CSV file using TI Process
Posted: Thu Apr 22, 2010 9:15 am
Hi,
I want to include a Gross Total row at the end of the CSV file after uploading all the records. I have written logic to get the gross total in Data Procedure.
I have a little problem in extracting data in a TI process. As you know, in a TI we can write the ASCIIOUTPUT function to write data from the cube into a csv file. But what happens is that when we open the same file in different tabs in the Advanced tabs, the files is opened as a fresh file. So when I write the data in the Data tab and at the same time, total the profit amounts, I need to write the final total of the profit amount in the same file as the last record. But I don’t know when the records will end so I am not able to decide when the Final total record has to be written. So I can write it in the Epilog tab. But then it cannot be done in the same file because if we open the same file then it will be opened as a fresh file and the original data will be lost.
Please suggest me how to do it. Thanks in advance.
I want to include a Gross Total row at the end of the CSV file after uploading all the records. I have written logic to get the gross total in Data Procedure.
I have a little problem in extracting data in a TI process. As you know, in a TI we can write the ASCIIOUTPUT function to write data from the cube into a csv file. But what happens is that when we open the same file in different tabs in the Advanced tabs, the files is opened as a fresh file. So when I write the data in the Data tab and at the same time, total the profit amounts, I need to write the final total of the profit amount in the same file as the last record. But I don’t know when the records will end so I am not able to decide when the Final total record has to be written. So I can write it in the Epilog tab. But then it cannot be done in the same file because if we open the same file then it will be opened as a fresh file and the original data will be lost.
Please suggest me how to do it. Thanks in advance.