ThingsBoard allows you to export data from widgets to CSV or XLS. Nearly any widget supports this functionality if applicable to widget type. The list of columns in the exported data set corresponds to the list of parameters you configure in data set configuration.
See video tutorial below for step-by-step instruction how to use this feature.