You haven't shown your group field. You could either create two formulas like the following:
//{@accum} to be placed in the group header or footer:
whileprintingrecords;
numbervar summax := summax + maximum({table.amt},{table.group})
//{@display} to be placed in the report footer:
whileprintingrecords;
numbervar summax;
Or you could create a SQL expression like the following {%maxamt}:
(select max(AKA.`amt`) from Table AKA where
AKA.`groupfield` = Table.`groupfield`)
You would substitute your table name wherever you see "Table", your exact field names for "amt" and "groupfield".
Then in the record selection formula use:
{table.amt} = {%maxamt}
Then you could just insert a summary on {%maxamt}.
-LB