Crystal version 11 Developer
OLEDB to MS SQL Server 2000
I need some assistance figuring how to complete this report. It was originally created in Excel with two sheets.
One showing the rolled up group totals and a second sheet showing all the data/details for each student. I am putting together a crystal report that will hide the details lines and roll up the values to the group 1 level, which will show to the report user. When the details are needed, they will drill down.
Example data
Student details from the SQL query result set:
"Student", "Home Room Teacher", "School Days Attended"
Larry, Falstaff, 100
Moe, Falstaff, 60
Curly, Falstaff, 55
etc.
Expected output
Grouped by Teacher:
"Home Room Teacher", Total Students", "Ave School Days", Expected Ave Total Days", Total Days Difference"
Falstaff, 55, 85, 80, 5
So what the report needs to do is add up all of the students (I used the count function on "Student") for the "Total Students" grouping, then obtain an "Ave School Days" average of the "School Days Attended", then the report actually pulls a historical-based number from another table to obtain the "Expected Ave Total Days". Up to this point I have been successful in using the count function on "Student" field to obtain "Total Students" and for "Ave School Days" using the Summary option with "calculate this summary" as average.
The kicker is that I am not sure how to subtract the "Expected Ave Total Days" value from "Ave School Days" average to obtain the "Total Days Difference" result. I'm also wondering if there is a name for this kind of report, so I can keep searching for ideas.
Thanks for any assistance.
Thanks,
-Hallux
OLEDB to MS SQL Server 2000
I need some assistance figuring how to complete this report. It was originally created in Excel with two sheets.
One showing the rolled up group totals and a second sheet showing all the data/details for each student. I am putting together a crystal report that will hide the details lines and roll up the values to the group 1 level, which will show to the report user. When the details are needed, they will drill down.
Example data
Student details from the SQL query result set:
"Student", "Home Room Teacher", "School Days Attended"
Larry, Falstaff, 100
Moe, Falstaff, 60
Curly, Falstaff, 55
etc.
Expected output
Grouped by Teacher:
"Home Room Teacher", Total Students", "Ave School Days", Expected Ave Total Days", Total Days Difference"
Falstaff, 55, 85, 80, 5
So what the report needs to do is add up all of the students (I used the count function on "Student") for the "Total Students" grouping, then obtain an "Ave School Days" average of the "School Days Attended", then the report actually pulls a historical-based number from another table to obtain the "Expected Ave Total Days". Up to this point I have been successful in using the count function on "Student" field to obtain "Total Students" and for "Ave School Days" using the Summary option with "calculate this summary" as average.
The kicker is that I am not sure how to subtract the "Expected Ave Total Days" value from "Ave School Days" average to obtain the "Total Days Difference" result. I'm also wondering if there is a name for this kind of report, so I can keep searching for ideas.
Thanks for any assistance.
Thanks,
-Hallux