# Configure calcul in a visual component

Within a chart component, you can apply a calculation directly to a field dropped in the "Value" box. This allows you to perform calculations quickly without having to go through a calculated field. However, it cannot be reused in another visual component.&#x20;

For each chart component, you have at your disposal a set of predefined calculations, in quick access. These calculations can vary from one component to another.

![](https://1155922781-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-ML7J3m_7oFtqqYdq0mw%2F-Mje2ySFTXin1Cdphrgb%2F-Mje31EKkqPgz70ZYavy%2FCalcul.png?alt=media\&token=343a312b-911a-442b-b4c8-4e297f0736e2)

By clicking on "Custom", you have access to the more advanced configuration of these calculations, as well as to the expression editor allowing you to create your own calculations.

These predefined calculations are based on window calculation functions, i.e. they take into account the data of the data "window" displayed in the visual component:

![](https://1155922781-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-ML7J3m_7oFtqqYdq0mw%2F-Mje2ySFTXin1Cdphrgb%2F-Mje338hDQJ6VK2_CEwL%2FCuztomiseCalculation.png?alt=media\&token=2973084d-84e6-4723-abaf-c38340632857)

For more details on window calculations, see the [relevant section](https://doc.biwee.fr/english/data-analyse/window-calculation-overview).
