January 22, 200322 yr I have a field for "units sold" and when there is a cancelation I simply put a negative number relative to the amount of the cancelation. What i need to do is have SUM(units sold) calculate only positive units and then another field with SUM(units sold) and add all the negative units... this way i get a total of cancelations and a total of sales seperately...is this posible?
January 22, 200322 yr There are a couple ways to do this, here's one... You're going to need another field for qtyReturned. This will be a calculation field = If(units sold < 0, abs(units sold), 0) This says, if the units sold field is less than zero, make this qtyReturned field equal to the absolute value of that field. Now, in your summaries... the total units sold will be sum(units sold) - sum(units returned) and the total units returned will be sum(units returned)
Create an account or sign in to comment