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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I develop a report to have break up time by intervals.

Status
Not open for further replies.

Poloxstar

MIS
Jul 10, 2002
11
0
0
US
Please help? I am trying to create a report to count how many transaction are taken in 30 minute time frames. I am stuck on how to create a formula to have the time intervals. Don't know where to begin.

example
Time Count
7:00 am 8
7:30 am 9
8:00 am 10

Thanks
 
It depends in part on the datatype of your time field, but if it is a time field, you should be able to create formulas like:

if {table.time} in time(07,00,00) to time(07,30,00) then "7:00 to 7:30" else
if {table.time} in time(07,30,01) to time(08,00,00) then "7:30 to 8:00"//etc.

Then group on this formula and insert summaries on your transaction field. Then suppress the details.

-LB
 
Note that if your data does not have any transactions for a given timeframe, then you won't get that time with a zero quantity, it will be omitted.

I generally approach this sort of requirement by creating a table with all times at the 1/2 hour level (data warehousing dimension table approach).

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top