O'Reilly logo

The Developer’s Guide to the Force.com Platform by Phil Choi, Andrew Fawcett, Glen Martin, Rick Greenwald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Roll-up Summary Fields

In the previous discussion on master-detail relationship, there was a rather tempting mention of a feature called Roll-up Summary Fields.

Roll-up Summary Fields, sometimes referred to as RSFs, perform different types of calculations, based on the child records in a master-detail relationship. A Roll-up Summary Field is available just like any other field, in pages, related list views and reports.

You can use Roll-up Summary Fields to obtain the following aggregates:

  • COUNT - holds the number of child records in the master-detail relationship

  • SUM - holds the sum of the values of the child record field indicated

  • MAX - holds the maximum value of the child record field indicated

  • MIN - holds the minimum value of the child record ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required