Hi
CR8
Progress 9.C
I've created a report with one of the fields based on the following formula:
if isnull({@TotalAmnt}) or {@TotalAmnt} = 0 then
0
else
if {#DistinctCount} <> 0 then
(({@TotalCommission} / {@TotalAmnt}) * 100)
else
0
TotalCommision:
{@Total}*({@Commission}/100)
TotalAmnt:
Sum ({@Office}, {@DOE}, "monthly"
+
Sum ({@Littlewoods}, {@DOE}, "monthly"
+
Sum ({@Field Payments}, {@DOE}, "monthly"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Where some of the results should be 38.9. 39.6, 39.8 etc
although the reults are all being rounded up to 40, even after changing the rounding format to .00, 0r .000 the result is the same, i've tried various rounding formulae such as :
Stringvar x:=totext({your number field}, 3);
Numbervar lg:= Length(x);
x[1 to (lg-1)]
but no joy
cheers in advance
CR8
Progress 9.C
I've created a report with one of the fields based on the following formula:
if isnull({@TotalAmnt}) or {@TotalAmnt} = 0 then
0
else
if {#DistinctCount} <> 0 then
(({@TotalCommission} / {@TotalAmnt}) * 100)
else
0
TotalCommision:
{@Total}*({@Commission}/100)
TotalAmnt:
Sum ({@Office}, {@DOE}, "monthly"
Sum ({@Littlewoods}, {@DOE}, "monthly"
Sum ({@Field Payments}, {@DOE}, "monthly"
Where some of the results should be 38.9. 39.6, 39.8 etc
although the reults are all being rounded up to 40, even after changing the rounding format to .00, 0r .000 the result is the same, i've tried various rounding formulae such as :
Stringvar x:=totext({your number field}, 3);
Numbervar lg:= Length(x);
x[1 to (lg-1)]
but no joy
cheers in advance