Hi,
I have an accounts report which has two columns called Dispute and Income. These two report columns refer to one singe database field called incomevalue (numeric(18,2) field).
The report is grouped by region and contract and I need to sum up all the negative incomevalues and show them under Dispute and positive values under Income.
I have tried using a formula field with the following in the details section which is suppressed as I dont want to show anything in that section.
The formula has the following
numberVar negValues;
numberVar posValues;
if ({cew.cew_incomevalue} < 0.0)
negValues=negValues+{cew.cew_incomevalue};
if ({cew.cew_incomevalue} > 0.0)
posValues=posValues+{cew.cew_incomevalue};
In GF2 section I have another 2 formulas which I was hoping would show the totals, Dispute and Income.
The code for Dispute is as follows:
numberVar negValues;
negValues;
The code for Income is similar.
In the RF I need to a grand total for Dispute and Income.
Thanks in advance
I have an accounts report which has two columns called Dispute and Income. These two report columns refer to one singe database field called incomevalue (numeric(18,2) field).
The report is grouped by region and contract and I need to sum up all the negative incomevalues and show them under Dispute and positive values under Income.
I have tried using a formula field with the following in the details section which is suppressed as I dont want to show anything in that section.
The formula has the following
numberVar negValues;
numberVar posValues;
if ({cew.cew_incomevalue} < 0.0)
negValues=negValues+{cew.cew_incomevalue};
if ({cew.cew_incomevalue} > 0.0)
posValues=posValues+{cew.cew_incomevalue};
In GF2 section I have another 2 formulas which I was hoping would show the totals, Dispute and Income.
The code for Dispute is as follows:
numberVar negValues;
negValues;
The code for Income is similar.
In the RF I need to a grand total for Dispute and Income.
Thanks in advance