---
title: "Calculating totals of Survey fields from their scores"
date: 2026-04-23
updated: 2026-10-29
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravitymath/calculating-survey-fields-totals-based-on-their-scoring/"
category: "GravityMath"
---

GravityMath calculates with the scores of a Likert field from the Gravity Forms [Survey Add-On](https://docs.gravityforms.com/category/add-ons-gravity-forms/survey-add-on/), for example to show the average rating of a workshop under a View. The field needs scores: in the form editor, open the Likert field, check **Enable Scoring**, and give each column a score. Without **Enable Scoring**, the field offers no footer calculation.

## Totals in the table footer

- Edit a View with the **Table** or **DataTables** layout.
- Click the gear icon of the Likert field and check **Add field calculations to the table footer?**
- Under **Calculation Type**, choose **Average**, **Sum**, **Lowest**, **Highest** or **Count (All)**.
- Click **Close**, then **Update**.

![The settings of a Likert field named Overall rating, with the Calculation Type list showing Lowest, Highest, Average, Count (All), Sum and Custom.](https://www.gravitykit.com/wp-content/uploads/2026/10/gravitymath-survey-calculation-type.png)[How to add field calculations to the table footer](https://www.gravitykit.com/docs/gravitymath/how-to-add-field-calculations-to-the-table-footer/)
*explains the other settings. With scores from 1 for Poor to 4 for Excellent, an average of the ratings looks like this:*![A Table View of workshop ratings whose footer shows Average score: 3.0 under the Overall rating column.](https://www.gravitykit.com/wp-content/uploads/2026/10/gravitymath-survey-footer-average.png)

## Totals with the  shortcode

In a [`[gravitymath]` shortcode](https://www.gravitykit.com/docs/gravitymath/math-shortcode/), use the Likert field's merge tag with a modifier such as `:avg` or `:sum`, and `scope="form"`, `scope="view"`, or `scope="visible"`. This shortcode shows the average score of every entry in form 15:

```
[gravitymath scope="form" id="15" decimals="1"] {Overall rating:11:avg} [/gravitymath]
```

For a Likert field with **Enable Multiple Rows** on, the merge tag adds up the scores of all rows in each entry. To calculate one row, add the row's number after the field ID: `{Workshop rating:6.1:avg}` is the average of the first row.

With `scope="entry"`, which reads one entry, a Likert field prints nothing.

## Summaries

GravityMath summaries, from the Math Summary widget or the summary shortcode, don't support Survey fields.