1) How to calculate GrandTotal of shared variable?
Currently it's calculating wrong. Fields are grouped by 'account' field.
In Group Header section
formula @GetBeginningBalance=
whileprintingrecords;
shared numbervar BeginBalance;
BeginBalance;
In Detail Section (suppressed)
whileprintingrecords;
numbervar BeginBalanceGrandTotal:= BeginBalanceGrandTotal + {@GetBeginningBalance};
{@GetBeginningBalance};;
In Report Footer section
whileprintingrecords;
numbervar BeginBalanceGrandTotal;
2) How to calculate GrandTotal with formula field?
In Group Header section
formula @YTDTotal =
{@GetBeginningBalance} + {@CalculateBalance}
In Detail section (suppressed)
whileprintingrecords;
numbervar GrandYTDTotal:=GrandYTDTotal+ {@YTDTotal};
{@YTDTotal};
In report footer section
whileprintingrecords;
numbervar GrandYTDTotal;
Currently it's calculating wrong. Fields are grouped by 'account' field.
In Group Header section
formula @GetBeginningBalance=
whileprintingrecords;
shared numbervar BeginBalance;
BeginBalance;
In Detail Section (suppressed)
whileprintingrecords;
numbervar BeginBalanceGrandTotal:= BeginBalanceGrandTotal + {@GetBeginningBalance};
{@GetBeginningBalance};;
In Report Footer section
whileprintingrecords;
numbervar BeginBalanceGrandTotal;
2) How to calculate GrandTotal with formula field?
In Group Header section
formula @YTDTotal =
{@GetBeginningBalance} + {@CalculateBalance}
In Detail section (suppressed)
whileprintingrecords;
numbervar GrandYTDTotal:=GrandYTDTotal+ {@YTDTotal};
{@YTDTotal};
In report footer section
whileprintingrecords;
numbervar GrandYTDTotal;