Originally posted by Jyoti Dorris
Hi I am fairly new user so please bare with me!!
I have the following formula field in my crystal report. The RETENTION_RESULTS.DISCOUNT field is a VARCHAR hence the requirement to change this to a number field first.
IF ToNumber(Trim(Left({RETENTION_RESULTS.DISCOUNT}, 2))) = 0 THEN 0 ELSE {BIP_SUBSCRIPTIONS.SUBS_AMOUNT} % ToNumber(Trim(Left({RETENTION_RESULTS.DISCOUNT}, 2)))
It almost does everything I need it to do except it does not return the correct value. I am trying to 'subract' the discount from {BIP_SUBSCRIPTIONS.SUBS_AMOUNT} field, I have changed the formula around and included the substraction sign but have not had any luck so far. |