You can use the Previous function (Group_Field) in the formula to indicate the beginning of the group. An example of using the Electronic Formula function gives an example. Basically, you see if the previous value of the field you are grouping is different from the current value. If so, then you have just started a new group.
If Previous ({table.GroupingField}) = ({table.GroupingField}) Then False Else True
source share