Thanks for helping.
I tried the above script you offered but unfortunately did not get what I want for the max value.
I attached 2 excel files in order for you to better understand what I need.
"stats1.xls" is a result of the previous script you offered (the one that gets 24 stat results). I added some explanation to it.
"stats2.xls" is the result of the script above. Both data are from the same date.
Which means the results should be the same, however the final max value is not.
https://www.dropbox.com/s/2gnwfwpgf9ot103/stats1and2.zip
>Note that there will be 1 CSV file per resourcepool. Is that what you want ?
If it is possible to put multiple resourcepool result in 1 CSV file, that would be super helpful (I wouldn't have to go through many csv files)