I'm trying to sum together a group of data, then pick the largest value to sum.
My data looks like this.
detail:
yellow 10
yellow 15
yellow 25
blue 10
blue 15
blue 25
red 10
red 10
red 20
report grouping 1: (sum of detail)
yellow 50
blue 50
red 40
report grouping 2: (Max of group 1)
50
i'm using a running total to get the sum of detail and that works fine. But I can't get the max of the sum to work. Is there a way to expand on this formula to get the maximum value after grouping.
whileprintingrecords;
numbervar rtsum := 0
whileprintingrecords;
numbervar rtsum := rtsum + {tAgentLoggedIn}
whileprintingrecords;
numbervar rtsum
My data looks like this.
detail:
yellow 10
yellow 15
yellow 25
blue 10
blue 15
blue 25
red 10
red 10
red 20
report grouping 1: (sum of detail)
yellow 50
blue 50
red 40
report grouping 2: (Max of group 1)
50
i'm using a running total to get the sum of detail and that works fine. But I can't get the max of the sum to work. Is there a way to expand on this formula to get the maximum value after grouping.
whileprintingrecords;
numbervar rtsum := 0
whileprintingrecords;
numbervar rtsum := rtsum + {tAgentLoggedIn}
whileprintingrecords;
numbervar rtsum