I am using Ver.8. against an Oracle DB (Remedy ODBC) I have 2 fields defined to enable me to sum the qty of records based some conditions:
FieldName1: If FIELD-A = VALUE-1 or VALUE-2
or Field-B = VALUE-3 or VALUE-4 then 1 else 0.
FieldName2: If FieldName1 = 0 then 1 else 0.
The 2nd field (FieldName2) should count all the records that did not pass the test for FieldName1. At a summary level in the report I do a SUM of both fields. FieldName1 counts the records correctly but Fieldname2 does not. The records are in the report - I can drill down and see them. In every case the records not being counted have a blank in one of the fields(RECEIVER) that FieldName1 tests for. Those records that fail the test for FieldName1 but that do have a value in RECEIVER do get counted correctly.
I've tried variations for FieldName2 as well (just to see if I can find out what's in there):
FieldName2: If FieldName1 = 0 or RECEIVER = " " or RECEIVER = "" or length(RECEIVER) < 2 or isnull(RECEIVER)...
But the records are still not counted. However if I test for some other value 1st such as:
FieldName2: If RECEIVER = "SOME VALUE"
then the records do get counted. This of course is impractical because I can't predict every value that will occurr in the field. So it seems my problem is with this specific field. FieldName1 actually tests for values in 3 different fields. You may be thinking 'test the values in FieldName2 in reverse (<>) of FieldName1' but I can't unless I know what's in there - like a null or space or something. Is there some condition that can be tested in this "blank" field. Does anyone know what's in this field or what's happening here?
I hope I've explained this well enough. Thanks for your help.
FieldName1: If FIELD-A = VALUE-1 or VALUE-2
or Field-B = VALUE-3 or VALUE-4 then 1 else 0.
FieldName2: If FieldName1 = 0 then 1 else 0.
The 2nd field (FieldName2) should count all the records that did not pass the test for FieldName1. At a summary level in the report I do a SUM of both fields. FieldName1 counts the records correctly but Fieldname2 does not. The records are in the report - I can drill down and see them. In every case the records not being counted have a blank in one of the fields(RECEIVER) that FieldName1 tests for. Those records that fail the test for FieldName1 but that do have a value in RECEIVER do get counted correctly.
I've tried variations for FieldName2 as well (just to see if I can find out what's in there):
FieldName2: If FieldName1 = 0 or RECEIVER = " " or RECEIVER = "" or length(RECEIVER) < 2 or isnull(RECEIVER)...
But the records are still not counted. However if I test for some other value 1st such as:
FieldName2: If RECEIVER = "SOME VALUE"
then the records do get counted. This of course is impractical because I can't predict every value that will occurr in the field. So it seems my problem is with this specific field. FieldName1 actually tests for values in 3 different fields. You may be thinking 'test the values in FieldName2 in reverse (<>) of FieldName1' but I can't unless I know what's in there - like a null or space or something. Is there some condition that can be tested in this "blank" field. Does anyone know what's in this field or what's happening here?
I hope I've explained this well enough. Thanks for your help.