Using CR 11 Pro, SQL Database
I have a formula that converts the result of one formula to a negative based on a parameter.
if {TRXHISTORYHDR.TRXTYPE}= 3
then -{@Total Amount}
else {@Total Amount}
Once I convert the number to a negative I need to sum the result on the report. The sum function is treating the converted number as a positive number and adding it to the sum instead of subtracting.
Below is the result I am looking for.
Total Amount
1000.00
500.00
-500.00
------------
Sum 1000.00
Thanks in Advance for any help.
I have a formula that converts the result of one formula to a negative based on a parameter.
if {TRXHISTORYHDR.TRXTYPE}= 3
then -{@Total Amount}
else {@Total Amount}
Once I convert the number to a negative I need to sum the result on the report. The sum function is treating the converted number as a positive number and adding it to the sum instead of subtracting.
Below is the result I am looking for.
Total Amount
1000.00
500.00
-500.00
------------
Sum 1000.00
Thanks in Advance for any help.