Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross-Tab by Half Hour 1

Status
Not open for further replies.

kmcclung

Programmer
Nov 20, 2001
120
US
I am creating a cross-tab report for the # of occurrences by half an hour for a day. I am using a date/time field as the row (only displaying the time) and have edited the Group Options for the field so a row will be printed "for each hour". It works great except I need it for every half an hour and that isn't an option. Any ideas?
 
create the following formula and then build your crosstab on it.


datetime(year({MyTable.MyDateTimeField}),
month({MyTable.MyDateTimeField}),
day({MyTable.MyDateTimeField}),
hour({MyTable.MyDateTimeField}),
(if minute({MyTable.MyDateTimeField})<30 then 0 else 30),
0)
 
If I create the formula above and add it as a row, the cross-tab only prints the entire day on one row and then a grand total row. I then tried changing the Grouping Options on the formula field to on every hour and get the same results as I do when I don't use the formual and just the date field.
 
Using that formula, group it on EACH MINUTE. Everything within the same half hour period will have the same minute in the formula.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top