Can you please tell me how to effectively generate a report in csv?