how to find first record from group in crystal reports?
A:
You can use the Previous(Group_Field) function in a formula to indicate the start the group. The Online formula function help gives an example. Basically you see if the Previous value of the field you are grouping on is different from the current value. If it is, then you have just started a new group.
If Previous ({table.GroupingField}) = ({table.GroupingField}) Then
False
Else
True
Anthony K
2009-03-03 07:34:20
A:
You can use: NthSmallest (1, {yourField},{theGrouping}) Or NthLargest (1, {yourField},{theGrouping})
Works like a charm
Mikkel Andersen Strojek
2010-06-09 10:07:52