The result you'll get is a sum(max(col1 for group1) *
num_of_rows_for_group_1).
I guess what you really need is sum of max's for all groups. If that's
right, you may create a detail band comp field tmp_comp like:
if (getrow() = [first_row_in_the_group], cfd_max, 0))
and then just sum(tmp_comp).
"Ico" <i...@nospam.com> wrote in message news:42ef6ad3@forums-1-dub...