# Totals & Subtotals

By default, Soulver displays a total of all your lines in the bottom right hand corner.

<div align="center"><img src="/files/ayBo6uq5k1dZezhhYKRE" alt="A floating quick total appears in the bottom right of your sheet (by default)" width="375"></div>

### Subtotals

#### Making a subtotal on Mac

Add a blank line and then press ⌘T (or double-click the empty answer).

A subtotal line will add up all lines above back up to the next subtotal, or heading (#).

<div align="left"><figure><img src="/files/2IHWo1cuN0tNeiO2QxQB" alt="" width="375"><figcaption><p>Double click the answer on an empty line to turn it into a subtotal</p></figcaption></figure></div>

#### Making a subtotal on iPad & iPhone

Hold down on an empty line and choose `Make Subtotal Line`:

![Subtotals in Soulver 3 for iPad](/files/IQlTi3V6uBDHXuPGSAbS)

Alternatively, tap the empty space below the last line.

## Subtotal tasks

#### Assigning a subtotal to a variable

You can create a variable on a subtotal line using "variable = " and leaving the value blank:

<img src="/files/wa690fwbRQV8p5RwYayY" alt="Declare a variable without a value on a sub-total line" data-size="original">

#### Adding a percentage (like a sales tax) to a subtotal

Add a percentage line to your subtotal to have this applied to the final result.

<figure><img src="/files/d57UDQ6vkdYpzrDlgHlL" alt="" width="375"><figcaption><p>A percentage in a subtotal will apply to the final result</p></figcaption></figure>

## Customizing the floating total

#### Showing/hiding the floating total

If the total is not helpful in your particular workflow, you can hide it by hovering over it and clicking `Hide`.

To show the total again, go to the `View` menu and choose `Show Total`.

<figure><img src="/files/07t6IrrPXPBTmqYEw3F9" alt=""><figcaption><p>Additional floating total options are available from the View menu</p></figcaption></figure>

#### Changing the statistic type

You can also show the average, count and median of your lines by control-clicking on the floating total and choosing an alternative statistic.

<figure><img src="/files/XjHpYFn0dPWVgUto0bhT" alt=""><figcaption><p>Choosing an alternative statistic for the floating total via the contextual menu</p></figcaption></figure>


---

# 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://documentation.soulver.app/documentation/totals-and-subtotals.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.
