Hi, My report has two groups:
group no. 1: Departments
group no. 2: Gender
I have two formulas (manula running totals) which I have placed in the group footer section of group no.2, ie Gender group
//@AvgF
//calculates Average Salary for all Females
if {Table1.Gender}='F' then
sum({Table1.Salary},{Table1.Gender})/count({Table1.Salary},{Table1.Gender})
//AvgM
//calculates Average Salary for all Males
if {Table1.Gender}='M' then
sum({Table1.Salary},{Table1.Gender})/count({Table1.Salary},{Table1.Gender})
Now I have a third formula
//@TotalAvg
@AvgM/@AvgF
which I am placing in the group footer section of group no.1, ie Departements. This formula is returning zero values for each Department. What am I doing wrong here?
Please advise.
Thanks,
group no. 1: Departments
group no. 2: Gender
I have two formulas (manula running totals) which I have placed in the group footer section of group no.2, ie Gender group
//@AvgF
//calculates Average Salary for all Females
if {Table1.Gender}='F' then
sum({Table1.Salary},{Table1.Gender})/count({Table1.Salary},{Table1.Gender})
//AvgM
//calculates Average Salary for all Males
if {Table1.Gender}='M' then
sum({Table1.Salary},{Table1.Gender})/count({Table1.Salary},{Table1.Gender})
Now I have a third formula
//@TotalAvg
@AvgM/@AvgF
which I am placing in the group footer section of group no.1, ie Departements. This formula is returning zero values for each Department. What am I doing wrong here?
Please advise.
Thanks,