My report consists of the following. I am using 3 tables : Schools, Pupils and Parents
A School has many pupils an a pupil has 0,1or 2 parents
The report looks as follows
Group Header 1 Schools
Group Header 2 Pupil
Details Pupil details and Parent details
@IsFather
@IsMother
Group Footer 2
SUM(@IsFather)
SUM(@IsMother)
@IsFather&Mother
Group Footer 1
@IsFather displays a 1 if Parent is father else 0
@IsMother displays a 1 if Parent is mother else 0
@IsFather&Mother displays a 1 is SUM(@IsFather) = 1 and SUM(@IsMother) = 1 else 0
The way the report works at the moment is that the details are repeated for the number of parents the pupil has – this is fine as I only want a total of pupils with a mother or a father or both for each school (I will suppress Details section)
When I try to insert a Grand Total on Group Footer 1 the @IsFather&Mother field is not displayed. If I manually try to create the SUM(@IsFather&Mother, GroupName (School)) then I get the error message “The Summary/running total field could not be created”
Which ever way round I format the report it seems I cannot create a summay/total for a formula with an if statement.
Hope that makes sense. Any pointers?
A School has many pupils an a pupil has 0,1or 2 parents
The report looks as follows
Group Header 1 Schools
Group Header 2 Pupil
Details Pupil details and Parent details
@IsFather
@IsMother
Group Footer 2
SUM(@IsFather)
SUM(@IsMother)
@IsFather&Mother
Group Footer 1
@IsFather displays a 1 if Parent is father else 0
@IsMother displays a 1 if Parent is mother else 0
@IsFather&Mother displays a 1 is SUM(@IsFather) = 1 and SUM(@IsMother) = 1 else 0
The way the report works at the moment is that the details are repeated for the number of parents the pupil has – this is fine as I only want a total of pupils with a mother or a father or both for each school (I will suppress Details section)
When I try to insert a Grand Total on Group Footer 1 the @IsFather&Mother field is not displayed. If I manually try to create the SUM(@IsFather&Mother, GroupName (School)) then I get the error message “The Summary/running total field could not be created”
Which ever way round I format the report it seems I cannot create a summay/total for a formula with an if statement.
Hope that makes sense. Any pointers?