I have a problem with some conditional formulas. I am using Crystal 8 and SQL Stored Procedures. The SQL Stored Procedure brings back all of the data needed. I have three formulas as follows:
If {spRptSubmittalsActivity;1.STATUS_ID} = 2 then
Count({spRptSubmittalsActivity;1.NEED_ID}, {spRptSubmittalsActivity;1.AcctName})
Sum({spRptSubmittalsActivity;1.NoPeopleC}, {spRptSubmittalsActivity;1.AcctName})
if {spRptSubmittalsActivity;1.STATUS_ID} = 2 then
Sum ({spRptSubmittalsActivity;1.NUMBER_OF_PEOPLE},{spRptSubmittalsActivity;1.AcctName} )
These formulas work fine. However, when I create three new fields using these formulas and only change the condition to be {spRptSubmittalsActivity;1.STATUS_ID} = 1, nothing shows in the additional formulas. The original formulas still work. I tried removing the fields from the report where STATUS_ID = 2 and keeping in the new fields, but it still won't calculate.
I tried using the Running Total expert, manual running totals, but still nothing. Does anyone have an idea.
If {spRptSubmittalsActivity;1.STATUS_ID} = 2 then
Count({spRptSubmittalsActivity;1.NEED_ID}, {spRptSubmittalsActivity;1.AcctName})
Sum({spRptSubmittalsActivity;1.NoPeopleC}, {spRptSubmittalsActivity;1.AcctName})
if {spRptSubmittalsActivity;1.STATUS_ID} = 2 then
Sum ({spRptSubmittalsActivity;1.NUMBER_OF_PEOPLE},{spRptSubmittalsActivity;1.AcctName} )
These formulas work fine. However, when I create three new fields using these formulas and only change the condition to be {spRptSubmittalsActivity;1.STATUS_ID} = 1, nothing shows in the additional formulas. The original formulas still work. I tried removing the fields from the report where STATUS_ID = 2 and keeping in the new fields, but it still won't calculate.
I tried using the Running Total expert, manual running totals, but still nothing. Does anyone have an idea.