Crystal XI
SQL 2005
I have the following formulas in a report:
Detail Section (Both fields evaluate correctly)
@HSActive (correctly evaluates to 1)= if {@Service} = 'Home Sale Assistance' and {rpt_service.serv_status_desc} <> '>Cancellation' and {rpt_service.serv_status_desc} <> 'Cancelled' then 1 else 0
@HSCancel (correctly evaluates to 1) = if {@Service} = 'Home Sale Assistance' and ({rpt_service.serv_status_desc} = '>Cancellation' or {rpt_service.serv_status_desc} = 'Cancelled') then 1
else 0
GF2 (Evaluates Correctly to 0)
@HSActiveCount = if {@HSActive}>0 and {@HSCancel}<1
then 1 else 0
GF1 Sum(@HSActive Count) (Incorrectly evaluates to 1)
I have intentionally selected only one record to verify the formulas are working properly. Any ideas on why (SUM) formula would evaluate to "1" in GF1 when the only record in the selection evaluates to "0" in GF2?
Any assistance would be most appreciated!
SQL 2005
I have the following formulas in a report:
Detail Section (Both fields evaluate correctly)
@HSActive (correctly evaluates to 1)= if {@Service} = 'Home Sale Assistance' and {rpt_service.serv_status_desc} <> '>Cancellation' and {rpt_service.serv_status_desc} <> 'Cancelled' then 1 else 0
@HSCancel (correctly evaluates to 1) = if {@Service} = 'Home Sale Assistance' and ({rpt_service.serv_status_desc} = '>Cancellation' or {rpt_service.serv_status_desc} = 'Cancelled') then 1
else 0
GF2 (Evaluates Correctly to 0)
@HSActiveCount = if {@HSActive}>0 and {@HSCancel}<1
then 1 else 0
GF1 Sum(@HSActive Count) (Incorrectly evaluates to 1)
I have intentionally selected only one record to verify the formulas are working properly. Any ideas on why (SUM) formula would evaluate to "1" in GF1 when the only record in the selection evaluates to "0" in GF2?
Any assistance would be most appreciated!