How to export data for analysis?