> For the complete documentation index, see [llms.txt](https://alt-fn.gitbook.io/alt.fn-knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alt-fn.gitbook.io/alt.fn-knowledgebase/exporting-and-printing/exporting-to-a-csv.md).

# Exporting to a CSV

### Exporting data from a dashboard to a CSV <a href="#export-dashboard-to-csv" id="export-dashboard-to-csv"></a>

{% hint style="info" %}
Export files can directly return information from the dataset import. This makes the files vulnerable to CSV injection if the imported data contains formulas or commands. For this reason, export files can prompt security warnings. To avoid malicious activity, turn off links and macros when reading exported files.
{% endhint %}

To export data from an analysis or dashboard to a comma-separated value (CSV) file, use the settings menu at the upper right of a widget. Exports only include data that currently displays in the item that you choose.

<img src="https://docs.aws.amazon.com/images/quicksight/latest/user/images/widget-menu-export-data.png" alt="" data-size="original">

In tables and pivot tables, you can export data to a comma-separated value (CSV) file or Microsoft Excel file. You can choose to export only visible fields or all fields.

To export only visible fields to a CSV or Excel file, choose the menu at upper-right of the visual. Choose either **Export to CSV** or **Export to Excel**, and then choose **Export visible fields to CSV** or **Export visible fields to Excel**.

To export all fields to a CSV or Excel file, choose the menu at upper-right of the visual. Choose either **Export to CSV** or **Export to Excel**, and then choose **Export all fields to CSV** or **Export all fields to Excel**.

![Export data options in tables and pivot tables](https://docs.aws.amazon.com/images/quicksight/latest/user/images/export-data-pivot-table.png)
