Rollup Fields
Rollup fields are designed to help users acquire insights into data through simple calculations that assist in the monitoring of key business metrics. By using these types of fields, this essentially allows for calculations to be run in the background of the application. Rollup Fields update accordingly when fields within the forms associated with the rollup field are edited and saved from a user perspective.
Scenario
I have two entities that hold data on running. One is the Parent form ‘Runs’ which holds records of runners- while the other is the Child form, ‘Daily Runs’ and holds specific information on the Date, Time, Distance and Runner.
As a user I want my parent form ‘Runs’ to breakdown the performance of each runner covering specifically the total number of runs that they complete.
To do this, I need to create a rollup field that calculates the Total Number of Runs done by each runner.
How To Create a Rollup Field
*Aggregate Functions allow you to select a function that will essentially tell the data what to do.
In total there are 5 different aggregate functions- these are:
SUM– Total of all fields
MAX– Maximum number of fields
MIN– Minimum number of fields
COUNT– Count all fields
AVG– Average of all fields
This field is calculated within the ‘Run’s’ entity by taking ‘runner specific’ information recorded in Daily Runs and adding this together with the COUNT aggregate function to get the ‘Total Number of Runs’ completed by that runner.