> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/parametrage/construire/calculs-formules/calculs-somme-moyenne-max-min.md).

# Calculs Somme, Moyenne, Max, Min

Les calculs **Somme**, **Moyenne**, **Min** et **Max** peuvent porter sur une colonne d’un autre tableau (Ex : calcul dans la fiche du client montrant la somme sur la colonne '***Total TTC**'* du formulaire '**c*****ommande**')*.

SIMAX est capable de « **déterminer** » ce que le calcul doit réellement calculer. Ainsi dans la fiche d’un client, la somme sur la colonne '***Total TT**C'* du formulaire ***Commande*** ne donnera pas le chiffre d’affaire total mais seulement celui fait par le client concerné.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FF0cutKkTGwyXz5I0avFB%2FCr%C3%A9er%20calcul.png?alt=media&amp;token=7b3b4c72-0934-4e15-9cdc-ba5b57c38a46" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Les champs somme, moyenne, max, min etc. tiennent compte du contexte; Il est possible d'utiliser la fonction somme dans un champ formule.
{% endhint %}


---

# 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://doc.simax.fr/parametrage/construire/calculs-formules/calculs-somme-moyenne-max-min.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.
