currently I have the following formula in my report footer
this is duplicated for each month.
I also need to include something similar in group#1 footer. i have tried
but the results are incorrect. the summation is not correct, and the values are not reset between groups.
I have done this before using running totals and defining an Evaluate formula and Resetting on the change of group_a.
I'm trying to do this by formula so I can create the formulas at runtime, instead of manually defining each formula at design time.
Jason Meckley
Programmer
Specialty Bakers, Inc.
Code:
numberVar total;
if({source.year} = {@current_year}) then total := total + {source.january};
total;
I also need to include something similar in group#1 footer. i have tried
Code:
numberVar total;
if({source.year} = {@current_year}) then total := total + sum({source.january},{source.group_a});
total;
I have done this before using running totals and defining an Evaluate formula and Resetting on the change of group_a.
I'm trying to do this by formula so I can create the formulas at runtime, instead of manually defining each formula at design time.
Code:
new ReportDocument()
.DataDefinations
.FormulaFields["name"]
.Text = dynamically_create_formula_from(something);
Jason Meckley
Programmer
Specialty Bakers, Inc.