Number
Number is a single large number: a record count, sum, average, minimum, or maximum. For example, how many deliveries are expected this week ("Deliveries") or the total amount spent on goods ("Purchase cost").
In the widget catalog it's in the Digits group. To learn how to add a widget to a screen and select data for it, see Custom screen.
The video shows the "Received, pcs" number: a Total of the Received, pcs field.
What to display
| Setting | What to choose | Required |
|---|---|---|
| Value | what to calculate — see table below | yes |
| By which field | the numeric field to calculate on, e.g. "Purchase cost". Appears for everything except Number of records | yes, except for Number of records |
| Value option | What the widget shows |
|---|---|
| Number of records | how many records made it onto the screen |
| Total | the sum of the field's values |
| Average | the average of the field's values |
| Minimum | the smallest value of the field |
| Maximum | the largest value of the field |
For example, the "Deliveries" widget is Number of records for entries in the Supplies set, while "Purchase cost" is a Total of the "Purchase cost" field.
By which field only offers numeric fields and monetary amounts, such as an order total. If a field exists in more than one set, you select it in two steps, as with other widgets: first the set, then the field.
How the calculation works
The number is calculated across all records that fall within the selected period and match the page filters, not just those loaded into tables on the screen. Change the week in Period or pick a supplier in a filter, and the number recalculates. For more on the period and filters, see Period and page filters.
If there are no records:
- Number of records shows 0;
- the other options show "—": "no records" and "records totaling zero" are different things.
Monetary amounts
If the field is a monetary amount, the currency is displayed next to the number. Records in different currencies cannot be summed: instead of a number, the widget shows "Can't add up: different currencies (…)" and lists the currencies.