With the function, you can calculate the mathematical sum of numeric values from an array or a table.
For example, the sum of invoice totals or the sum of a specific item sold across all stores.
In conjunction with the "select" and "where" filter conditions, you can, for example, determine the turnover of a specific item sold in a specific store in a specific year and prepare the result for display or further process.
You can use the function also on table views in columns with numeric values.
Result: Sum value of all invoice totals in the Invoice table.
sum((select Invoices.Total where year(date) = 2021).Total)