Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Group by Description and split report by hours Post Reply Post New Topic
Author Message
noms
Newbie
Newbie
Avatar

Joined: 23 Feb 2009
Location: South Africa
Online Status: Offline
Posts: 6
Quote noms Replybullet Topic: Group by Description and split report by hours
     Posted: 09 Jun 2011 at 11:41pm
hi
i need to create a cross tab and in my column heading the date should be split per hour e.g 01:00 to 02:00  02:00 to 03:00 and so forth
 
here's the data from my datasource:
Code          StartDate                              EndDate                         Total
SPML001  2005-03-10 15:30:00.000  2005-03-10 18:30:00.000   16153
SPML001  2005-03-10 18:30:00.000  2005-03-10 19:30:00.000   0
SPML001  2005-03-10 19:30:00.000  2005-03-10 23:00:00.000   18847
 
for each line of StartDate to endDate it should split into hours and calculate the total per hour:
e.g the duration in hours for 2005-03-10 15:30:00.000 to 2005-03-10 18:30:00.000   is 3hrs and should display
 
15:30 to 14:30 14:30 to 15:30 15:30 to 16:30....... 23:30 to 00:00
 
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum