> 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/formules/evaluer-une-formule.md).

# Évaluer une formule

Il est possible de faire évaluer une formule à Max, c'est à dire que vous pouvez tapez à Max une opération : inscrivez par exemple 3\*2 dans la barre de Max et tapez sur **\[\[Entrée]]**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FaTNyYqVj7Gxzbr2iVben%2F3%20fois%202.png?alt=media&amp;token=88b31749-51e3-45c0-81f8-a42c5f48d757" alt=""><figcaption></figcaption></figure>

<p align="right"></p>

Max calculera pour vous cette opération :

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FQLlcQbvY5ZJLh7c6LouN%2FR%C3%A9ponse%203%20fois%202.png?alt=media&amp;token=0922bb9e-eb8b-4d82-95b6-c7ebe3ba5fc5" alt=""><figcaption></figcaption></figure>

<p align="right"></p>

Les formules avec colonnes sont également possible à évaluer (seules les formules qui nécessitent un élément de départ ne sont pas évaluables).

*Par exemple : union(\['Id. unique' de 'Commande fournisseur' <18IGR0JJHK> ], selection(\['Traité' de 'Commande fournisseur' <3AB2COJA16>]=faux et \['Code' de 'Etat commande fournisseur' <1CRLC7VFDF>]<30 )))=*

*Résultat :*

*- Valeur brute :*

*40678190899276|*

*- Valeur affichée :*

*COF000002 ABC Société X*


---

# 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/formules/evaluer-une-formule.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.
