> For the complete documentation index, see [llms.txt](https://docs.phocassoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phocassoftware.com/flex-modes/save-and-share-your-work/copy-or-export-data.md).

# Copy or export data

Copy or export data for use elsewhere.

Copy selected data when you want to quickly use it elsewhere, or export the current data when you want to work with it in another application.

{% embed url="<https://phocassoftware.wistia.com/s/mzo33c5wauacv66>" %}
Copy or export data
{% endembed %}

Configure the grid before you copy or export to make sure it contains the data you need.

### Copy data

{% hint style="info" %}
User permission: **Query** > **Export** > **Clipboard**
{% endhint %}

Copy data directly from the grid when you only need part of the current results.

Select the applicable cells, then use either of these methods:

* Right-click the selection and select **Copy**.
* Press **Ctrl+C** or **Ctrl+Insert** on Windows, or **Cmd+C** on Mac.

The copied data reflects your selection and can be pasted into another application, such as Microsoft Excel.

### Export data

{% hint style="info" %}
User permission: **Query** > **Export** plus permission for each file type, such as **CSV**
{% endhint %}

Export the current data when you want to create a file for use outside Phocas.

1. Prepare the data. \
   The export is based on the current state of your analysis, so review the grid before exporting. Check that the grid contains the data and level of detail you need before you export it. For example, you can focus on or exclude items, apply filters, select a mode, change the period or stream, select measures, add or remove properties, and change the grid configuration.&#x20;
2. Select **Export** in the toolbar above the grid.
3. Select the export format.

Depending on the available options, you can export the data as:

* **CSV:** Creates a comma-separated values file for use in another application or process.
* **XLSX:** Creates a Microsoft Excel workbook so you can continue working with the data in Excel.

<div align="left"><figure><img src="https://2122657374-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDGOWDU4SqRSiSPGXHgW%2Fuploads%2FWTPLyVAuCxWm9TrEn1Hw%2Fhttps___content.gitbook.com_content_aDGOWDU4SqRSiSPGXHgW_blobs_8SqLVXo3Fh7l7ItkWDSp_image.avif?alt=media&amp;token=2c0a5eff-be15-47c5-ba6e-8049ff6c3524" alt="" width="347"><figcaption></figcaption></figure></div>

XLSX exports preserve conditional formatting and nested rows. Nested rows are expanded by default.

{% hint style="success" %}
**Want to choose the file name?**

You can't customize the file name in Phocas, but your browser settings might allow you to choose it when you download the file. [Learn how](https://support.pdfarchitect.org/hc/en-us/articles/7264830967060-How-to-change-my-browser-settings-to-name-files-as-I-save-them)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.phocassoftware.com/flex-modes/save-and-share-your-work/copy-or-export-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
