Question : Group by week starting with first day of the month

Hey Experts,
I am needing help with a Crystal Report function.  I am grouping by week; however I need the grouping to start with the first day of the month and not the default of the first day of the week - which is Monday.

Thanks, RogerK

Answer : Group by week starting with first day of the month

I assume those will be the weeks for each month.  If so you could use a formula like

If Day({Datefield}) <= 7 then
   1
Else If Day({Datefield}) <= 14 then
   2
Else If Day({Datefield}) <= 21 then
   3
Else If Day({Datefield}) <= 28 then
   4
Else
   5
 
mlmcc
Random Solutions  
 
programming4us programming4us