
Originally Posted by
June7
Use those parameters to calculate a group identifier and use that field for sorting and grouping.
Switch([Profit]<5,1, [Profit]>=5 And [Profit]<20,2, [Profit]>=20 And [Profit]<50,3, [Profit]>=50 And [Profit]<100,4, [Profit]>=100 And [Profit]<200,5, [Profit]>=200,6) As GroupID
Create a group section in report based on the GroupID.
Textbox in group footer can calculate the count:
=Count([GroupID])
Another can sum the Profit field:
=Sum([Profit])
The WHERE filter criteria is not needed and you have one query.