Crystal reports version 10, ODBC connection to SQL 2000 database
I am creating an employee FTE report, drawing on payroll summary records.
Records are limited via range parameter linked to payroll end date field.
To calculate FTE value I need to sum eft records, per employee and divide this total by the number of pays within parameter date range. If the total, per employee is above 1 then total value should be 1 else just the summed value.
e.g. {@eft total}
if sum({eft record}, {employee no})/no of pays > 1 then 1 else sum({eft record}, {employee no})/no of pays
From here is where I am having trouble, total employee values must then be reported by type. (Group #1)
e.g
Group #1 (Asco)
if {dbo_t101_position.t101f155_asco_code} = "1" then "Managerial" else
if {dbo_t101_position.t101f155_asco_code} = "2" then "Professional" else
if {dbo_t101_position.t101f155_asco_code} in ["3", "4", "7", "9"] then "Operative" else
if {dbo_t101_position.t101f155_asco_code} in ["6", "5", "8"] then "Clerical"
Group #2 (Employee no) (suppressed)
Details (suppressed)
{Emp no.} {eft record} {pay end date}
Group # 2 (footer)
{@eft total)
Report should look like:-
Managerial 3.50
Professional 2.25
Operative 103.11
Clerical 55.22
EFT calculated value for each employee (Group #2) works fine but cannot get Crystal to sum employee totals for Group #1 (Asco)
Appreciate your assistance.
I am creating an employee FTE report, drawing on payroll summary records.
Records are limited via range parameter linked to payroll end date field.
To calculate FTE value I need to sum eft records, per employee and divide this total by the number of pays within parameter date range. If the total, per employee is above 1 then total value should be 1 else just the summed value.
e.g. {@eft total}
if sum({eft record}, {employee no})/no of pays > 1 then 1 else sum({eft record}, {employee no})/no of pays
From here is where I am having trouble, total employee values must then be reported by type. (Group #1)
e.g
Group #1 (Asco)
if {dbo_t101_position.t101f155_asco_code} = "1" then "Managerial" else
if {dbo_t101_position.t101f155_asco_code} = "2" then "Professional" else
if {dbo_t101_position.t101f155_asco_code} in ["3", "4", "7", "9"] then "Operative" else
if {dbo_t101_position.t101f155_asco_code} in ["6", "5", "8"] then "Clerical"
Group #2 (Employee no) (suppressed)
Details (suppressed)
{Emp no.} {eft record} {pay end date}
Group # 2 (footer)
{@eft total)
Report should look like:-
Managerial 3.50
Professional 2.25
Operative 103.11
Clerical 55.22
EFT calculated value for each employee (Group #2) works fine but cannot get Crystal to sum employee totals for Group #1 (Asco)
Appreciate your assistance.