The below formula will not give me the "Gross Amounts" for the fourth line of logic. This formula works if I separate it out and it works in the exact layout in sql query but when I put it in report it seems to ignore the Transaction_History.Social_Code} = "059" part. Any ideas?
To spell it out- I don't want any dealer#s that equal 0040000 or 0468 - I do want any fundsgroup2 that equal 59 or 58 and I do want any social codes that equal 059
All should be trade type that equals P
if
({Transaction_History.Dealer_Number} <> '0040000' AND
{Transaction_History.Dealer_Number} <> '0468') AND
(({Funds.FundGroup2} in ["59", "58"]) or
{Transaction_History.Social_Code} = "059" and
{Transaction_History.Trade_Type} = 'P'
then {Transaction_History.Gross_Amount}
To spell it out- I don't want any dealer#s that equal 0040000 or 0468 - I do want any fundsgroup2 that equal 59 or 58 and I do want any social codes that equal 059
All should be trade type that equals P
if
({Transaction_History.Dealer_Number} <> '0040000' AND
{Transaction_History.Dealer_Number} <> '0468') AND
(({Funds.FundGroup2} in ["59", "58"]) or
{Transaction_History.Social_Code} = "059" and
{Transaction_History.Trade_Type} = 'P'
then {Transaction_History.Gross_Amount}