Niteshift Posted January 22, 2003 Posted January 22, 2003 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?
jasonwood Posted January 22, 2003 Posted January 22, 2003 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)
Recommended Posts
This topic is 8315 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now