BillyBussey
7 years agoQrew Trainee
My code using Sum function with the - operator.
What is wrong with my code? [Apply Discount] is a checkbox the rest are numeric formula fields. [Discount] is a numeric field. It will Sum but fails to subtract the [Discount] even when not used in the IF statement.
If([Apply Discount]= true, Sum ([SoftScape Total],[HardScape Total],[Aggregate Total],[Removal Total]-[Discount]),Sum([SoftScape Total],[HardScape Total],[Aggregate Total],[Removal Total]))
If([Apply Discount]= true, Sum ([SoftScape Total],[HardScape Total],[Aggregate Total],[Removal Total]-[Discount]),Sum([SoftScape Total],[HardScape Total],[Aggregate Total],[Removal Total]))