Granted my way may not be efficient, but it works. The reports run quickly and without any known problems so efficiency must not be an issue.
My scenario is I have a weekly report that shows the age of sales leads.
In the detail section I have one formula (Named Days Old) that determines the age of the lead which is simply the date the lead was received – current date, this will result in a number such as 35.
Also in the detail section I have three other formulas for the buckets. For this report we wanted them grouped by 0 to 30 days, 31 to 60 days and 61 + days.
Each one of these formulas looks like this:
Formula Name: Formula
0 to 30 : If {@Days Old} <= 30 then "X"
31 to 60: If ({@Days Old} in (31 to 60)) Then "X"
61 + days old: If {@Days Old} >60 Then "X"
Now in my group footer I have running totals, one for each bucket, that summarizes on the formula and counts the X’;s
If you would like an example of the report, send me your e-mail address.
Hope this helps