DarkCloud2
Programmer
Crystal Reports 8.5
Oracle 9i/ODBC
I have about 75,000 rows of claimant's claims. I am only interested in displaying claimant's who only have award claims and training claims. Thus I do not want to display claimant # 001 since that claimant has claims other than AWARD and TRAINING. I have tried to use a variable in a grouping of claim numbers but have not been successful.
My unsuccessful formula in the “Edit Select Formula Group”:
sum({@setTypeAwd},{claimants}) > 1 and
sum({@setTypeTrn},{claimants}) > 1 and
sum({@setTypeOth},{claimants}) < 1
//@setTypeAwd
numberVar nAward;
if {type} = ‘AWARD’ then
nAward := nAward + 1;
nAward;
//@setTypeTrn
numberVar nTrain;
if {type} = ‘TRAINING’ then
nTrain := nTrain + 1;
nTrain;
//@setTypeOth
numberVar nOther;
if {type} <> ‘AWARD’ and {type} <> ‘TRAINING’ then
nOther := nOther + 1;
nOther;
Example Data:
claimants type
001 BID
001 AWARD
001 PROMOTION
002 BID
002 AWARD
002 PROMOTION
003 AWARD
003 AWARD
003 TRAINING
004 BID
004 TRAINING
004 AWARD
004 PROMOTION
Expected Output:
003 AWARD
003 AWARD
003 TRAINING
Any help would be greatly appreciated.
Thanks, G
Oracle 9i/ODBC
I have about 75,000 rows of claimant's claims. I am only interested in displaying claimant's who only have award claims and training claims. Thus I do not want to display claimant # 001 since that claimant has claims other than AWARD and TRAINING. I have tried to use a variable in a grouping of claim numbers but have not been successful.
My unsuccessful formula in the “Edit Select Formula Group”:
sum({@setTypeAwd},{claimants}) > 1 and
sum({@setTypeTrn},{claimants}) > 1 and
sum({@setTypeOth},{claimants}) < 1
//@setTypeAwd
numberVar nAward;
if {type} = ‘AWARD’ then
nAward := nAward + 1;
nAward;
//@setTypeTrn
numberVar nTrain;
if {type} = ‘TRAINING’ then
nTrain := nTrain + 1;
nTrain;
//@setTypeOth
numberVar nOther;
if {type} <> ‘AWARD’ and {type} <> ‘TRAINING’ then
nOther := nOther + 1;
nOther;
Example Data:
claimants type
001 BID
001 AWARD
001 PROMOTION
002 BID
002 AWARD
002 PROMOTION
003 AWARD
003 AWARD
003 TRAINING
004 BID
004 TRAINING
004 AWARD
004 PROMOTION
Expected Output:
003 AWARD
003 AWARD
003 TRAINING
Any help would be greatly appreciated.
Thanks, G