Skip to content

v1.6.25 - Adds support for distinct sums, averages, and more

Compare
Choose a tag to compare
@jamessimone jamessimone released this 02 May 17:57
· 14 commits to main since this release
908512e

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 the CONCAT_DISTINCT rollup operation value, but I am leaving support for CONCAT_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 previously SObject-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:

image