Maybe it will be easier to ask for help in what I'm doing. I have a report full of data (surprisingly). I have multiple lines for each account, because every payment on an account has it's own line. I'm trying to summarize the List $ Value. However, because there are many lines with the same value, what I've done is add a field to count the records for each account. I'm then trying to summarize only the fields with Count #1. I'm not sure if there's a better way to do this, but this is what I have.
@AcctSeq Formula:
numbervar AcctSeq;
if onfirstrecord
then AcctSeq:=0
else if {Command.GACCT#}<>previous({Command.GACCT#})
then AcctSeq:=0
else AcctSeq:=AcctSeq+1
AmountPlacedFormula (The formula I'm trying to do a grand total on):
if ({@AcctSeq}=0 and not({Command.SINACT}='Y' and {Command.STFLAG}='Y'))
then {Command.GPLACE}
else 0
Basically, if my sequence # is 0 and a couple other fields don't show a 'Y', then I want my placement amount. Otherwise I want a 0.
Hopefully I've given enough detail here...