I am using the following formula to group by.
CR9, RealHour is a datetime.
if
minute({@RealHour}) > 29
then
totext(datetime(date({@RealHour}),time(hour({@RealHour}),30,00)))
else
totext(datetime(date({@RealHour}),time(hour({@RealHour}),00,00)))
Our business day spans from 5:30 am to 5:30 am the next day.
I had to use totext to get the hours to line up from lowest to highest, but the dates are not sorting properly.
What am I doing wrong?
My groups right now look like this:
7/15/2003 12:00:00 AM
7/15/2003 12:30:00 AM
7/15/2003 1:00:00 AM
7/15/2003 1:30:00 AM
7/15/2003 2:00:00 AM
7/15/2003 2:30:00 AM
7/15/2003 3:00:00 AM
7/15/2003 3:30:00 AM
7/15/2003 4:00:00 AM
7/15/2003 4:30:00 AM
7/14/2003 5:30:00 AM
7/15/2003 5:00:00 AM
7/14/2003 6:00:00 AM
7/14/2003 6:30:00 AM
7/14/2003 7:00:00 AM
7/14/2003 7:30:00 AM...
7/14/2003 11:00:00 PM
7/14/2003 11:30:00 PM
Note the "7/14/2003 5:30:00 AM" stuck amongst the rest of the 7/15s.
CR9, RealHour is a datetime.
if
minute({@RealHour}) > 29
then
totext(datetime(date({@RealHour}),time(hour({@RealHour}),30,00)))
else
totext(datetime(date({@RealHour}),time(hour({@RealHour}),00,00)))
Our business day spans from 5:30 am to 5:30 am the next day.
I had to use totext to get the hours to line up from lowest to highest, but the dates are not sorting properly.
What am I doing wrong?
My groups right now look like this:
7/15/2003 12:00:00 AM
7/15/2003 12:30:00 AM
7/15/2003 1:00:00 AM
7/15/2003 1:30:00 AM
7/15/2003 2:00:00 AM
7/15/2003 2:30:00 AM
7/15/2003 3:00:00 AM
7/15/2003 3:30:00 AM
7/15/2003 4:00:00 AM
7/15/2003 4:30:00 AM
7/14/2003 5:30:00 AM
7/15/2003 5:00:00 AM
7/14/2003 6:00:00 AM
7/14/2003 6:30:00 AM
7/14/2003 7:00:00 AM
7/14/2003 7:30:00 AM...
7/14/2003 11:00:00 PM
7/14/2003 11:30:00 PM
Note the "7/14/2003 5:30:00 AM" stuck amongst the rest of the 7/15s.