> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/mathematische-aktionen/rule-action-calculate-sum.md).

# berechne Summe

Berechne die Summe der Zahlenwerte in einem Listenfeld.

Von **`berechne Summe`** um alle numerischen Werte in einem Listenfeld zu addieren.

Diese Aktion ist für Aufgaben wie die folgenden nützlich:

* Gesamtbestand über mehrere Produktgrößen berechnen.
* Eine Summe aus mehreren numerischen Werten berechnen.

***

## Beispiel `berechne Summe` Anwendungsfälle

### Gesamtbestand über mehrere Größen berechnen

Verwende diese Regel, wenn jedes Item einen Wert im `stock` feld. Erste(s), von [Item-Gruppen erstellen](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/item-aktionen/rule-action-build-item-group.md) Zu erfassen `stock` Werte von Items mit demselben `item_group_ID` in einem neuen `stock_list` Feld. Dann von **`berechne Summe`** um die Werte zu addieren `stock_list` und speichere die Summe in `total_stock`.

#### So erstellst du eine Regel

* Bedingung: **`Für alle Items`**
* Aktion: DANN **`Artikelgruppe erstellen`** basierend auf `item_group_ID` von Feld `stock` und setze ein in `stock_list`
* Aktion: DANN **`berechne Summe`** von `stock_Liste` und setze ein in `total_stock`

{% hint style="info" icon="lightbulb" %}

#### Tipp

Hinzufügen **`Artikelgruppe erstellen`** vorher **`berechne Summe`**. Die `stock_list` Das Feld muss vorhanden sein, bevor du seine Summe berechnen kannst.
{% endhint %}

### Lagermengen hinzufügen

Verwende diese Regel, wenn ein Listenfeld Bestandsmengen aus mehreren Lagern enthält.

#### So erstellst du eine Regel

* Bedingung: **`Für alle Items`**
* Aktion: DANN **`berechne Summe`** von `warehouse_stock_Liste` und speichere das Resultat in `available_stock`


---

# 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://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-de/regeln-massenbearbeitung-und-anreicherung/how-to-use-actions-then-in-rules/mathematische-aktionen/rule-action-calculate-sum.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.
