Quick Base automatically totals data in your table when you use a summary or chart report. But if you want Quick Base to total orders based on specific criteria within a table, or you want to do any math on these totals (such as, you want to calculate what percent each sales representative has brought in over the last 30 days), you'll need the assistance of another table and summary fields. Any time you want to collect data from multiple records and perform calculations on those values, you'll need to use this kind of field.
A summary field is part of a table-to-table relationship. Summary fields are stored in the parent table of a relationship, and summarize fields from related records in the child table. For example, you may have a Sales Orders table that is related to another table called Sales Team listing your sales people. In this relationship, the Sales Team table is the parent table, meaning one salesperson can have many orders. If you wanted to determine how many sales each salesperson closed or the total revenue each sales rep brought in, you add a summary field to the Sales Team table. Within each salesperson's record, the summary field then calculates the total number of orders (from the Sales Orders table) related to the record.
Summary fields do more than just add. You can also use a summary field to calculate other amounts. For example, a summary field could contain an average value. Or, you can use a summary field to calculate a minimum or maximum number, or even calculate dates.
Another benefit of summary fields is that the data from these fields can be exported and used in formulas.You also can pass the value of summary fields down to the child table using a lookup field if you want to use summaries in child table formulas or reports, or export data from the child table.
To create a summary field, you must have an existing relationship, or create a relationship between two tables.
Open the app that contains the relationship you want to enhance with a summary field.
If you created a relationship between tables in two different apps (a cross-app relationship), open the application that contains the parent table.
Open the table.
Select the relationship that you want to edit. The relationship properties appear:
Under the Parent Table settings on the left side of the screen, click Add Summary Field. A New Summary Field page appears.
Select one of the following types of summary fields:
The number of child_records related to that parent_record – Counts the number of child records related to each parent record.
For example, if your parent table contains salespeople and your child table contains sales orders, Quick Base totals the number of orders for each salesperson and displays the total number of orders in each salesperson's record. The label for this option depends on what you call the records in a table. For this example, the label will be The number of Orders related to that Salesperson.
A summary of a specific field – Summarizes a specific field of your choice.
Select the type of summary that you want for a particular field from the list:
Total – Adds values from specific fields.
For example, if you want to total each salesperson's sales in dollars, select this option and the "Sale Amount" field.
Average – Averages values from a numeric field.
Maximum – Returns the largest (for numeric fields) or latest (for date fields) value.
Minimum – Returns the smallest (for numeric fields) or earliest (for date fields) value.
Standard Deviation – Returns the standard deviation for a particular field.
After you select the type of summary that you want, then select the field you want Quick Base to summarize.
Under Matching Criteria, select and add fields to set matching criteria. You may want to summarize only specific records in your table.
Use the Matching Criteria to select the records that you want the summary field to calculate. For example, you may choose to only summarize the tasks that are overdue or only sales figures above a certain amount.
Select Create in the upper right of the page. A Choose name dialog appears.
Type a name for the summary field, then click OK.
Note: When you add a summary field, it doesn't automatically appear on reports or forms. You need to add it yourself by editing reports or customizing forms.
© 1999-2018 QuickBase, Inc. All rights reserved. Legal Notices.