syntax - how do i subtract two grandtotal fields in Crystal Reports -
i'm using crystal reports , have created 2 sum grandtotal fields. want field 1 - field 2 in x1 formula, can't call fields formula. tried use sum({field1}) - 2 doesn't seem grandtotal.
is possible grandtotal in sum sum({field1}.grandtotal) ?
create formula , write
sum({field1}-sum({field2}
and place @ rigt part after columns.
if doesn't work follow below process.
crate formula @grandtotal1
sum({field1},{group1}(if using group)
create formula @grandtotal2
sum({field1},{group2}(if using group)
now create formula
evaluateafter(@grandtotal1); evaluateafter(@grandtotal2) @grandtotal1+@grandtotal2
Comments
Post a Comment