Use Summarize Records when you need a summary rather than a list of every record.
Add Summarize Records to your workflow.
Choose the table and add filters if you only want some records.
Open Output and add a calculation.
Choose Count, Sum, Average, Lowest or Highest.
For a number calculation, choose the number field.
Give the calculation a result name, such as total_sales.
Set Return as, save and test.
For example, filter paid orders and calculate the sum of amount to find total paid sales. Add a count calculation to see how many orders contributed.
This example groups orders by category and returns the sum of amount as total.

Select Group by to create a separate summary for each value. Group orders by category and calculate total amount to see sales for each category.
Using a keyboard, focus the dropdown arrow and press Enter or Space to open its options. Use Tab to reach an option and Enter to choose it. Escape closes the options and returns focus to the dropdown button.
You can add several calculations, each with a different result name. Use names that are easy to recognise when selecting the results in later commands.
The sample result below includes a total, count, average, lowest and highest amount for each category. Retail has two orders with amounts of 10 and 20, giving a total of 30 and an average of 15.

Sum, Average, Lowest and Highest use number fields. Do not use text such as a formatted currency label. Keep the amount as a number and format it later for display.
Test empty and incomplete data as well as ordinary records. Your app should handle an empty summary when no records match.
Related Records
Include related information in the same result instead of adding a separate lookup for each record in a list. Example: orders with customers. Suppose your Orders table stores a `customerId`, and your Customers table contains the corresponding customer record. 1. Add Get Multiple Data and select Orde...
Export Data from Tables
Twidget allows you to export data from your database tables to a CSV file. This feature supports the export of both complete and filtered datasets. Here’s how you can utilize this functionality: Features. - Format: Export data in CSV format. - Data Handling: Object and list data types within your ta...
Filter Data
In Twidget, you can easily filter and sort data within the database tables view. This allows you to refine and manipulate the data as needed. Below are the steps and options available for filtering and sorting data. Filtering Data. To filter data: 1. Click on the Filter Button: In the table toolbar,...
Database Indexes
Indexes help Twidget find records quickly. A unique index also prevents duplicate values from being saved. Choose the right index. Use a lookup index for a field you regularly filter or sort, such as an order date. Use a unique index when a value must not appear twice, such as a membership number. A...
Save Changes Together
A Database Transaction groups database work so its changes complete together. If a command in the block fails, the block's changes are rolled back. Example: an order and its stock change. 1. Add Database Transaction to the workflow. 2. Inside Save changes together, add the supported commands that cr...