> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/form-management/data-export/data-exports/csv-excel/questions-as-rows.md).

# Questions as Rows

Depending on the third party tools that you are using for analysis the default export output based on columns results in too much pre-processing to be able to analyze the data.

To allow an easier data analysis ngSurvey offers a way to pivot the data that you are exporting. Instead of organizing the data by columns it will organize the data per rows where each question will have its own row for each of the respondents.  Using such a format will enable you to easily group, filter the data to focus on the actual data analysis of the  the data that you have collected.

## ➡️ Data export file output samples

Using a survey with following questions and answers, you would be able to get a pivoted output of all the respondent data.&#x20;

<figure><img src="/files/Pi3ignUO36vtSdYOYRah" alt=""><figcaption></figcaption></figure>

Here the pivoted view of the data were ngSurvey generates for each respondent a single row for each of the question and answer in the survey.

<figure><img src="/files/yRk00b2PXrWRMTrdbkfp" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ngsurvey.com/form-management/data-export/data-exports/csv-excel/questions-as-rows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
