How to create a CSV with consumption data