Sign Up
Loading...

Summarise Records

Use Summarize Records when you need a summary rather than a list of every record.

Create a summary

  1. Add Summarize Records to your workflow.

  2. Choose the table and add filters if you only want some records.

  3. Open Output and add a calculation.

  4. Choose Count, Sum, Average, Lowest or Highest.

  5. For a number calculation, choose the number field.

  6. Give the calculation a result name, such as total_sales.

  7. 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.

Group the results

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.

Choose valid number fields

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 Topics

Table Relationships

In Twidget, you can connect database table data using the `_id` field that is automatically generated for every row in a table. This `_id` field is essential for creating and maintaining relationships across different tables. Types of Relationships. A one-to-one relationship occurs when a single row...

Adding Database Table Rows

In Twidget, you can easily add new entries (rows) to your database tables. This feature allows you to expand your data dynamically without the need for complex coding. This document provides a step-by-step guide on how to add rows to your database tables. Adding a New Entry to a Table. To add a new ...

CSV Import

Twidget enables seamless import of data from a CSV file into your database. Follow the steps below to successfully import a CSV file. Step-by-Step Guide. 1. Initiate the Import: - Click on the Import button within the table toolbar. - Select Import from CSV from the dropdown. 2. Open Import Dialog: ...

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,...

Generate CRUD Endpoints

With Twidget, you can efficiently generate CRUD (Create, Read, Update, Delete) endpoints for your database tables upon their creation. This functionality is designed to streamline the development process and ensure that essential API operations are readily available. Enabling CRUD Endpoints. 1. Crea...