我必须开发一个报告,它将显示学生的当前学期的成绩,每门课程的学分和学生的详细信息。以及该学期每个学生的总GPA。因此,我已经根据学生ID创建了组。因此,现在报告显示Ok,但我必须为Crystal Report中的每个组计算每个学生ID的GPA。GPA的计算公式为:
(grade point * credit)/Sum(Credit)我不太确定如何在每个组页脚中应用此公式。
提到:我正在使用Crystal Report 10,VB.NET,Mysql
发布于 2013-07-19 02:14:16
//{@GPA}
Sum({table.grade_point},{table.student_id}) / Sum({table.credit},{table.student_id}) / Sum({table.credit},{table.student_id})发布于 2013-07-19 10:57:36
把每个学生作为一个小组,然后在细节中,你可以把学分和成绩。快速概述:
//Group1 header
{t.student}
//detail
{b.course_num} {b.credit} {b.grade} {@grade}
//group1 footer
{?credit_hours} {@GPA}
//{@grade} place in details
case {b.grade}
when A then 4.00
when A- then 3.70
when B+ then 3.33
when B then 3.00
when B- then 2.70
when C+ then 2.30
when C then 2.00
when C- then 1.70
when D+ then 1.30
when D then 1.00
when D- then 0.70
else 0
//{@grade_pt} place in details
{@grade} * {t.credit}
//{@GPA} place in group footer, and create running totals
({?credit_hours}*{?grade})/{?credit_hours}https://stackoverflow.com/questions/17728566
复制相似问题