cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
jojmp
Level III

How to generate a summary average of multiple csv files?

I have multiple csv files in the attached format in a particular folder , how do I generate a new file which contains the summary of the average of all the columns A, B, C, D of each csv file in the below format:

filenameABCD
 avg_colA_file1avg_colB_file1avg_colC_file1avg_colC_file1
 avg_colA_file2avg_colB_file2avg_colC_file2avg_colC_file2
     

I know to generate the average of each csv file using table summary but how can we do the same for multiple csv files using a single script?

13 REPLIES 13
jojmp
Level III

Re: How to generate a summary average of multiple csv files?

Sure but I could not find my answer there because close( dtx, nosave ); closes both the data table and summary table. I wanted to close only the data table & keep the summary table open, is that possible?
txnelson
Super User

Re: How to generate a summary average of multiple csv files?

The reason for it closing the summary table is that you specified to Link the summary table to the original table. Change or add
Link to Original Data Table(0)
Jim
jojmp
Level III

Re: How to generate a summary average of multiple csv files?

Thanks a lot really appreciate your inputs!
mlo1
Level IV

Re: How to generate a summary average of multiple csv files?

Did you try if Tables -> Summary function is doing the job you want?

mlo1_0-1606584605026.pngmlo1_1-1606584677703.png