I'm new to crystal reports this week and got this far in a report that our payroll department needs. This is how I have it setup so far.
1st 2nd 3rd Pay Date
Division
Program
Site
Smith, John Q 100.00 0.00 0.00 1/8/2003
Smith, John Q 100.00 0.00 0.00 1/20/2003
Jones, Bob A 0.00 0.00 50.00 3/14/2003
Jones, Bob A 0.00 0.00 50.00 3/29/2003
Jones, Bob A 0.00 150.00 0.00 2/10/2003
Jones, Bob A 0.00 150.00 0.00 2/24/2003
Jones, Bob A 100.00 0.00 0.00 1/8/2003
Jones, Bob A 0.00 0.00 0.00 1/20/2003
Bing, Mary B 0.00 0.00 40.00 3/14/2003
Bing, Mary B 0.00 0.00 60.00 3/29/2003
Bing, Mary B 0.00 0.00 0.00 2/10/2003
Bing, Mary B 0.00 0.00 0.00 2/24/2003
Bing, Mary B 50.00 0.00 0.00 1/8/2003
Bing, Mary B 40.00 0.00 0.00 1/20/2003
Site Total: 390.00 300.00 200.00
Site2…
I have 3 "Grouping Levels" setup Division, Program and Site. And each Site needs subtotaled. I got that part but I am having problems with the following...
Question 1 - I would like the “3 months” to report on one line and automatically subtotal the 2 pays (or some months 3 pays) in each month. So, for each person only have one line with the total gross. (the "pay date" is not in my report, I just added it here to show where the numbers were coming from). I have the information i want for this part but i would like to clean it up and make the report smaller. I want it to look like this:
Smith, John Q 200.00 0.00 0.00
Jones, Bob A 100.00 300.00 100.00
Bing, Mary B 90.00 0.00 100.00
Right now my formula for the 1st Gross is: (2nd and 3rd are same with the month and days changed.)
Question 2 - I have no idea how to do this but I need a count if they got a pay or not for a month and need that subtotaled by site. Every time I tried to do a count I ended up with a count on all records so I am not sure where to begin with this part. In my previous example I would want it to look like this
Site 1 Jan Feb Mar Jan Feb Mar
Smith, John Q 200.00 0.00 0.00 1 0 0
Jones, Bob A 100.00 300.00 100.00 1 1 1
Bing, Mary B 90.00 0.00 100.00 1 0 1
-----------------------------------------------------
Totals 390.00 300.00 200.00 3 1 2
Any help would be appreciated,
Allen H
1st 2nd 3rd Pay Date
Division
Program
Site
Smith, John Q 100.00 0.00 0.00 1/8/2003
Smith, John Q 100.00 0.00 0.00 1/20/2003
Jones, Bob A 0.00 0.00 50.00 3/14/2003
Jones, Bob A 0.00 0.00 50.00 3/29/2003
Jones, Bob A 0.00 150.00 0.00 2/10/2003
Jones, Bob A 0.00 150.00 0.00 2/24/2003
Jones, Bob A 100.00 0.00 0.00 1/8/2003
Jones, Bob A 0.00 0.00 0.00 1/20/2003
Bing, Mary B 0.00 0.00 40.00 3/14/2003
Bing, Mary B 0.00 0.00 60.00 3/29/2003
Bing, Mary B 0.00 0.00 0.00 2/10/2003
Bing, Mary B 0.00 0.00 0.00 2/24/2003
Bing, Mary B 50.00 0.00 0.00 1/8/2003
Bing, Mary B 40.00 0.00 0.00 1/20/2003
Site Total: 390.00 300.00 200.00
Site2…
I have 3 "Grouping Levels" setup Division, Program and Site. And each Site needs subtotaled. I got that part but I am having problems with the following...
Question 1 - I would like the “3 months” to report on one line and automatically subtotal the 2 pays (or some months 3 pays) in each month. So, for each person only have one line with the total gross. (the "pay date" is not in my report, I just added it here to show where the numbers were coming from). I have the information i want for this part but i would like to clean it up and make the report smaller. I want it to look like this:
Smith, John Q 200.00 0.00 0.00
Jones, Bob A 100.00 300.00 100.00
Bing, Mary B 90.00 0.00 100.00
Right now my formula for the 1st Gross is: (2nd and 3rd are same with the month and days changed.)
Code:
IIf({PRCKHIST.CHKDATE}>=#01/01/2003# and {PRCKHIST.CHKDATE}<=#01/31/2003#,{PRCKHIST.TOTALGROSS}-{PRCKHIST.REIMBPAY},0)
Question 2 - I have no idea how to do this but I need a count if they got a pay or not for a month and need that subtotaled by site. Every time I tried to do a count I ended up with a count on all records so I am not sure where to begin with this part. In my previous example I would want it to look like this
Site 1 Jan Feb Mar Jan Feb Mar
Smith, John Q 200.00 0.00 0.00 1 0 0
Jones, Bob A 100.00 300.00 100.00 1 1 1
Bing, Mary B 90.00 0.00 100.00 1 0 1
-----------------------------------------------------
Totals 390.00 300.00 200.00 3 1 2
Any help would be appreciated,
Allen H