Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: function to create list of dates between parameter 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: function to create list of dates between parameter
     Posted: 21 May 2012 at 1:57am
hi
i have a report with StartDate and EndDate parameters and need to calculate time worked per staff. from my parameters i want to create a formula that will list dates as
1
2
3
.
.
30
from the startdate selection to EndDate selection. and be able to show time worked against the list of dates and if no staff worked duting the specific date it should show 0.
 
please help
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 22 May 2012 at 6:43am
I would think that you could use the datediff formula to group by (datediff("d",{?StartDate},{DateField}) ) inside of the staff group.  Not sure how to do time calculation for staff.  Not enough information given.
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