springle
IS-IT--Management
- Jan 7, 2005
- 7
I have a fairly harmless formula that is giving me the numbers I expect. The problem is that I cannot apply a summary to this field. If I try to trick crystal 9 into doing a summary I get an erro stating, "A summary has been specified on a non-recurring field."
Any ideas what it causing this and how to get around it.
Thanks in advance. Below is the formula
Scott
===== Start Formula ======
if 99/100 <= 1.0 then
(if {CONTACT2.USLSQTPROD} startswith "1" then (135 * {@PercentofQuotaMet}/100)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 50 * {@PercentofQuotaMet}/100)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 20 * {@PercentofQuotaMet}/100)
)
else if {@PercentofQuotaMet}/100 <= 1.2 then
(if recordnumber <= {@SalesQuota} then
(if {CONTACT2.USLSQTPROD} startswith "1" then (135 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 50 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 20 * 1.0)
)
else if recordnumber <= {@SalesQuota} * 1.2 then
(if {CONTACT2.USLSQTPROD} startswith "1" then (160 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 60 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 25 * 1.0)
)
)
else
(if recordnumber <= {@SalesQuota} then
(if {CONTACT2.USLSQTPROD} startswith "1" then (135 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 50 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 20 * 1.0)
)
else if recordnumber <= {@SalesQuota} * 1.2 then
(if {CONTACT2.USLSQTPROD} startswith "1" then (160 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 60 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 25 * 1.0)
)
else
(if {CONTACT2.USLSQTPROD} startswith "1" then (200 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 80 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 40 * 1.0)
)
)
====== End Formula ======
Any ideas what it causing this and how to get around it.
Thanks in advance. Below is the formula
Scott
===== Start Formula ======
if 99/100 <= 1.0 then
(if {CONTACT2.USLSQTPROD} startswith "1" then (135 * {@PercentofQuotaMet}/100)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 50 * {@PercentofQuotaMet}/100)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 20 * {@PercentofQuotaMet}/100)
)
else if {@PercentofQuotaMet}/100 <= 1.2 then
(if recordnumber <= {@SalesQuota} then
(if {CONTACT2.USLSQTPROD} startswith "1" then (135 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 50 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 20 * 1.0)
)
else if recordnumber <= {@SalesQuota} * 1.2 then
(if {CONTACT2.USLSQTPROD} startswith "1" then (160 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 60 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 25 * 1.0)
)
)
else
(if recordnumber <= {@SalesQuota} then
(if {CONTACT2.USLSQTPROD} startswith "1" then (135 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 50 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 20 * 1.0)
)
else if recordnumber <= {@SalesQuota} * 1.2 then
(if {CONTACT2.USLSQTPROD} startswith "1" then (160 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 60 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 25 * 1.0)
)
else
(if {CONTACT2.USLSQTPROD} startswith "1" then (200 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "2" then ( 80 * 1.0)
else if {CONTACT2.USLSQTPROD} startswith "3" then ( 40 * 1.0)
)
)
====== End Formula ======