Rate calculation ?
Posted: Wed May 30, 2007 11:13 am
Hi,
I have to create a report including some rates.
I can not figure out how to do that..
Any help would be really welcome...
Context :
Each data row contains : Date - Month - Project Name - Nb of Hours
--------------------------------------------------------------------
01/01/2007 - January - Project 1 - 5
02/01/2007 - January - Project 1 - 5
03/01/2007 - January - Project 2 - 2
04/01/2007 - January - Project 2 - 3
05/01/2007 - January - Project 2 - 3
06/01/2007 - January - Project 2 - 2
07/01/2007 - February - Project 1 - 5
08/01/2007 - February - Project 2 - 5
09/01/2007 - February - Project 2 - 5
10/01/2007 - February - Project 2 - 5
--------------------------------------------------------------------
What I need to get :
--------------------------------------------------------------------
January Nb of hours Rate
Project1 - 10 - 50%
Project2 - 10 - 50%
Total - 20 - 100%
February
Project1 - 5 - 25%
Project2 - 15 - 75%
Total - 20 - 100%
etc...
--------------------------------------------------------------------
I created a report with 2 groupheaderbands.
The first one has a condition on the "Month" field
The second one has a condition on the "Project" field
Sums calculation are OK.
But how to calculate rates ?
Is there a mean to pre-calculate the monthly sum of hours, store it in a variable, and then use it for calculating rate by project ?
I guess I need a "2 steps" process (the first step to calculate the monthly sum, the second one to calculate the rates), but I can not figure out how to do that...
Thanks for your help...
I have to create a report including some rates.
I can not figure out how to do that..
Any help would be really welcome...
Context :
Each data row contains : Date - Month - Project Name - Nb of Hours
--------------------------------------------------------------------
01/01/2007 - January - Project 1 - 5
02/01/2007 - January - Project 1 - 5
03/01/2007 - January - Project 2 - 2
04/01/2007 - January - Project 2 - 3
05/01/2007 - January - Project 2 - 3
06/01/2007 - January - Project 2 - 2
07/01/2007 - February - Project 1 - 5
08/01/2007 - February - Project 2 - 5
09/01/2007 - February - Project 2 - 5
10/01/2007 - February - Project 2 - 5
--------------------------------------------------------------------
What I need to get :
--------------------------------------------------------------------
January Nb of hours Rate
Project1 - 10 - 50%
Project2 - 10 - 50%
Total - 20 - 100%
February
Project1 - 5 - 25%
Project2 - 15 - 75%
Total - 20 - 100%
etc...
--------------------------------------------------------------------
I created a report with 2 groupheaderbands.
The first one has a condition on the "Month" field
The second one has a condition on the "Project" field
Sums calculation are OK.
But how to calculate rates ?
Is there a mean to pre-calculate the monthly sum of hours, store it in a variable, and then use it for calculating rate by project ?
I guess I need a "2 steps" process (the first step to calculate the monthly sum, the second one to calculate the rates), but I can not figure out how to do that...
Thanks for your help...