# Columns / Rows Sums

Matrix questions can be configured to automatically calculate the total of the rows and columns values entered by the respondent.

![](/files/-M_uvjqX889DktTgcQAZ)

In order to enable the sum you will need to have a matrix with entry field columns and set in the matrix properties page the Display sum option to Columns or/and Rows.


---

# Agent Instructions: 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:

```
GET https://docs.ngsurvey.com/form-management/form-designer/questions/question-types/matrix-questions/columns-rows-sums.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
