# Export PowerTable to CSV with filters and sorting applied

**URL:** <https://forum.inductiveautomation.com/t/export-powertable-to-csv-with-filters-and-sorting-applied/9811>\
**Category:** Ignition\
**Created:** [March 17, 2015, 2:59pm UTC](https://forum.inductiveautomation.com/t/export-powertable-to-csv-with-filters-and-sorting-applied/9811 "2015-03-17T14:59:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMicky](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JMicky](https://forum.inductiveautomation.com/u/JMicky)\
**Post date:** [March 17, 2015, 2:59pm UTC](https://forum.inductiveautomation.com/t/export-powertable-to-csv-with-filters-and-sorting-applied/9811/1 "2015-03-17T14:59:08Z")

</div>

Hi,

I am currently using the system.dataset.exportCSV to export data from a power table to CSV.  
This, however, exports the raw data as apposed to the filtered and sorted data the the user has arranged.  
Is there a way to export this filtered and sorted version of the dataset?

Thank you in advance,

John

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [March 19, 2015, 6:42pm UTC](https://forum.inductiveautomation.com/t/export-powertable-to-csv-with-filters-and-sorting-applied/9811/2 "2015-03-19T18:42:59Z")

</div>

Currently there is no way to do that. This does appear to be a feature that could possibly be available in 7.8

---

<div class="post-metadata">

**Author:** ![JMicky](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JMicky](https://forum.inductiveautomation.com/u/JMicky)\
**Post date:** [December 29, 2015, 2:08pm UTC](https://forum.inductiveautomation.com/t/export-powertable-to-csv-with-filters-and-sorting-applied/9811/3 "2015-12-29T14:08:06Z")

</div>

This was implemented in V7.8.0  
You now have the option for the raw data

```auto
filePath = system.dataset.exportCSV(strDefaultName, 1, table.data)
```

Or the option for the sorted and filtered data.

```auto
filePath = system.dataset.exportCSV(strDefaultName, 1, table.viewDataset)
```
