Hi
I have designed a report containing some employee name data grouped by month and whether they started or left that month:
03/02
Starters
Jane Miller
Clare Duke
Total Starters = 2
Leavers
Mark Lee
Total Leavers = 1
The data above shows that in the month year group 03/02
2 people started work and 1 person left work.
However....
I also want to include Employee Headcounts for each month/year group. To calculate the headcount I want to do the following:
1) Subtract the number of leavers from the starters for each month/year to give #total1
2) Create a running total grouped by month/year on #total1
The running total has to work with non-filtered records
The way Crystal appears to function however is presenting me with a few problems:
1) I cannot find a way to subtract the leavers subtotal value from the starters subtotal value for each #month.
For example, in the report data I provided above, I would like to deduct 1 from 2 to come up with 1 for 03/02
I tried to resolve this using a workaround where I created two formulas: one which only shows starters and one which only shows leavers. I then did a count on each. Unfortunately if you do create conditional formulas, Crystal appears to count every record including empty records.
For example, in the example underneath the count of @good values should be 2 and not 4 but crystal will provide the result 4.
assessment @good values
bad
good good
bad
good good
2) When I create the running total for headcount using the group values I need to use all the data. What though if I want a record selection in my data? In this case Crysal with create the running total using only the data I selected. This will not work for headcount.
Due to Crystals apparent limitations working out headcounts per month has proved really difficult for me .
If anyone can give me any clues on how I might be able to get round some of these limitations I would be very grateful!
Nassy
I have designed a report containing some employee name data grouped by month and whether they started or left that month:
03/02
Starters
Jane Miller
Clare Duke
Total Starters = 2
Leavers
Mark Lee
Total Leavers = 1
The data above shows that in the month year group 03/02
2 people started work and 1 person left work.
However....
I also want to include Employee Headcounts for each month/year group. To calculate the headcount I want to do the following:
1) Subtract the number of leavers from the starters for each month/year to give #total1
2) Create a running total grouped by month/year on #total1
The running total has to work with non-filtered records
The way Crystal appears to function however is presenting me with a few problems:
1) I cannot find a way to subtract the leavers subtotal value from the starters subtotal value for each #month.
For example, in the report data I provided above, I would like to deduct 1 from 2 to come up with 1 for 03/02
I tried to resolve this using a workaround where I created two formulas: one which only shows starters and one which only shows leavers. I then did a count on each. Unfortunately if you do create conditional formulas, Crystal appears to count every record including empty records.
For example, in the example underneath the count of @good values should be 2 and not 4 but crystal will provide the result 4.
assessment @good values
bad
good good
bad
good good
2) When I create the running total for headcount using the group values I need to use all the data. What though if I want a record selection in my data? In this case Crysal with create the running total using only the data I selected. This will not work for headcount.
Due to Crystals apparent limitations working out headcounts per month has proved really difficult for me .
If anyone can give me any clues on how I might be able to get round some of these limitations I would be very grateful!
Nassy