Re: crosstab for durations
- From: "drolaw" <drlaw@xxxxxxx>
- Date: 26 Jun 2006 12:41:31 -0700
I'm not sure how you can do this in a cross tab. I don't believe you
can format the summary value in the manner you want to. However, you
don't really need a cross tab for this report as you only have one
column. It would work if you did the following:
1. Get rid of the cross tab.
2. Create a group for the time interval you want (month, year, etc.)
3. Create another group for the person.
4. Create another group for the project.
5. Place the integer field representing the number of minutes in the
details section and summarize it in the group footer for the project
(using the sum aggregation).
6. Use the follwing formula in the group footer for the project, to
display the time in the format you specified.
numbervar Minutes := 1000; //NOTE: This should refer to the summarized
value from step 5.
NumberVar TotHours;
NumberVar TotMinutes;
TotMinutes := remainder(minutes,60);
TotHours := (Minutes - TotMinutes)/60;
ToText(TotHours, 0) + ":" + ToText(TotMinutes, 0);
In this case, the variable "Minutes" would be replaced with your
summarized value.
I know that isn't exactly what you wanted, but it should work.
yves wrote:
Hello everybody,
I'm working currently on a time accounting application for my company.
Therefore I would like to produce with crystal reports a crosstab report
containg for a period (month, week...) :
- for each person in the organization (column) ;
- for each project (row) ;
- the duration for the period (summarized field).
The 'summarized field' duration is an integer data with the duration in
minute.
In the report I would like to display durations in hours and minutes
(for example : 39:30 for 39 hours and 30 minutes).
All I'm able to do is to display the duration in hours (39.5 for 39
hours and 30 minutes).
I unsucessfully tried some workaround solutions like storing duration in
days (ex. 0,5 for 12 hours...) or storing duration in date format in
order to cheat with Crystal reports or play with the function
whileprintingrecords.
Could someone give me an advice or an idea to produce such a report ?
Thanks in advance.
Yves
.
- Follow-Ups:
- Re: crosstab for durations
- From: yves
- Re: crosstab for durations
- References:
- crosstab for durations
- From: yves
- crosstab for durations
- Prev by Date: Pulling only the first instance of a date
- Next by Date: Re: Pulling only the first instance of a date
- Previous by thread: crosstab for durations
- Next by thread: Re: crosstab for durations
- Index(es):
Relevant Pages
|