Sweetworks
MIS
I am helping my sales manager with a report. He wants to compare a prior Periods Sales vs. a Current Period Sales, and categorize them as Declined, New, or Renewed. He wants to break up each sales person sales by customer, then by one of these fields
I already have them grouped correctly; I’m just having a bit of trouble with this formula
My fields are PP (Prior Period Invoiced Sales), CP (Current Period Invoiced Sales)
Declined would be
PP >= 0 and CP = 0
New would be
PP = 0 and CP > 0
Renewed would be
PP > 0 and CP > 0
Sample Data
Customer PP CP Gain/ (Loss)
Acme 0 100 100
BAC 100 500 400
Doors 500 0 (500)
Grandma 0 0 0
My results should be
Acme New
BAC Renewed
Doors Decline
Grandma Decline
I am Getting
Acme New
BAC New
Doors Decline
Grandma Decline
This is the Formulas I am using
IF ({@CP Invoiced} = 0 and {@PP Invoiced} >= 0) then 'DECLINE' else
IF ({@CP Invoiced} > 0 and {@PP Invoiced} = 0) then 'NEW' else 'RENEW'
I’ve tried a couple other variations. Any Suggestions?
I already have them grouped correctly; I’m just having a bit of trouble with this formula
My fields are PP (Prior Period Invoiced Sales), CP (Current Period Invoiced Sales)
Declined would be
PP >= 0 and CP = 0
New would be
PP = 0 and CP > 0
Renewed would be
PP > 0 and CP > 0
Sample Data
Customer PP CP Gain/ (Loss)
Acme 0 100 100
BAC 100 500 400
Doors 500 0 (500)
Grandma 0 0 0
My results should be
Acme New
BAC Renewed
Doors Decline
Grandma Decline
I am Getting
Acme New
BAC New
Doors Decline
Grandma Decline
This is the Formulas I am using
IF ({@CP Invoiced} = 0 and {@PP Invoiced} >= 0) then 'DECLINE' else
IF ({@CP Invoiced} > 0 and {@PP Invoiced} = 0) then 'NEW' else 'RENEW'
I’ve tried a couple other variations. Any Suggestions?