> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/exports/additional-export-information/creating-excel-pivot-tables.md).

# Creating Excel Pivot Tables

Summarize an iMotions Lab export in an Excel pivot table, for example the average of an AOI metric per stimulus, and show it as a pivot chart.

*Here is a step-by-step guide on how to create pivot tables within excel in order to analyze the data.*

## A. Pivot table

1. Open Excel file (for example AOI metric per respondent)
2. Click on first cell of data array ![D4\_-Eye\_Tracking-Exports-\_Pivot\_Tables\_1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3adbcbeba363446386de790eff1ba5c91b674c2a%2Fd269a292b9__d4__-_eye_tracking_-_exports_-_pivot_tables_1.webp?alt=media)
3. Select the **Insert** Tab.
4. Click on **Pivot Table** to start a new Pivot Table and click OK. ![D4\_-Eye\_Tracking-Exports-\_Pivot\_Tables\_1a.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9af54e1a15f95bbe2db74f0661d046a6dafb8fe5%2F150ba03497__d4__-_eye_tracking_-_exports_-_pivot_tables_1a.webp?alt=media)
5. To compare metrics between categories, select a category.
6. Drag selected category to the rows area. For this example we dragged Stimulus Name to the rows area. ![D4\_-Eye\_Tracking-Exports-\_Pivot\_Tables\_2.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7f3f6932825e8bfc1414d698c2203e0640331498%2Fec699559c3__d4__-_eye_tracking_-_exports_-_pivot_tables_2.webp?alt=media)
7. Next select the metric you would like to compare.
8. Drag the selected metric to the Values area.
9. Right click the new Value and select **Value Field Setting** ![D4\_-Eye\_Tracking-Exports-\_Pivot\_Tables\_3.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-46b46b1c65d5369ca8fa5645d97635d72128086c%2F2df642d4a1__d4__-_eye_tracking_-_exports_-_pivot_tables_3.webp?alt=media)
10. Choose how you would like to summarize your data, for this example change it from Sum to **Average.**
11. Click **OK**. ![D4\_-Eye\_Tracking-Exports-\_Pivot\_Tables\_4.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-511afc142e57b8e45a62409ef66152e5930b94e2%2F7996211b4e__d4__-_eye_tracking_-_exports_-_pivot_tables_4-1-.webp?alt=media)
12. Now that your data is summarized in a table you can visualize it with a chart for easier comparison. Start by clicking on any cell in your table.
13. Click on the **PivotChart** button.
14. Example of a Pivot chart. ![D4\_-Eye\_Tracking-Exports-\_Pivot\_Tables\_5.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-33ab0c5593892db9f01063f2244ca0f27a98be71%2F4828af2f13__d4__-_eye_tracking_-_exports_-_pivot_tables_5-1-.webp?alt=media)


---

# 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://help.imotions.com/lab/exports/additional-export-information/creating-excel-pivot-tables.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.
