Implement a view to export stat to csv file