v1.6.25 - Adds support for distinct sums, averages, and more
Overview
- As discussed in #583, adds support for distinct rollups via
Rollup__mdt.IsDistinct__c
. Technically, a CONCAT-based rollup can now supply this flag instead of using theCONCAT_DISTINCT
rollup operation value, but I am leaving support forCONCAT_DISTINCT
in order to not make this a breaking change - This change also has the notable benefit of abstracting most of the logic in
RollupCalculator
that was previouslySObject
-based, which will allow me to continue work on a feature that was requested last year (which I have not had time to get back to): the ability to "group" rollup operations (so, taking sums from two different children/two different children fields and applying them to the same parent field, or even wilder: taking the max of two sums and applying the winner to a parent field). While this work is still to come, this release paves the way for that functionality
Usage
You can now check off Is Distinct
on your Rollup metadata: