EVAL(m.cDummyGrpVar)Just before you invoke your "Report Form ..." command, assign the field name you want to group this particular report by to the memory variable cDummyGrpVar and the report should group on the field you have selected.
m.cDummyGrpVar = 'sales.region'Your report will be grouped by region. If you say:
report form ...
m.cDummyGrpVar = 'sales.department'Your report will be group by department. Pretty slick eh? Further, no reason why you can't have 3, 4, 5 ... levels of grouping expressions each with it's own dummy memory variables to really make a single report design work for you.
report form ...