Creating Roll-Up Fields

Jessica FaircloughDyn365CE6 years ago36 Views

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

  1. Settings > Solution > Open your solution
  2. Select the entity (Running) > Click on Fields
  3. Click New
  4. Name your field > Enter data type > Enter Field Type > Then click ‘Edit’

  1. Specify the related entity (This is the relationship you will have previously made between the two entities) > Click the tick

  1. Select the Field Aggregation COUNT.

*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

 

  1. Select the aggregate related entity (Daily Runs) > Click the tick

  1. Save and Close the rollup field window > Save and close the field window

 

  1. Publish All Customizations

 

  1. Navigate to Runs and Select Runner to view the Rollup Field within the form.

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.

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...