RDesigns
asked on
Formula bringing back duplicates
Hi experts
Can anyone help with this formula
For some reason the {P.ARC} = 'N' is not working for one of the sets of records and it is bringing back values where the P.ARC is not 'N'
Thanks for your help
RD
if IsNull({P.AMT}) then
(
0
)
else
(
if ( {P.REF} in [3678,1657] and {P.ARC} = 'N' ) then
(
{P.AMT}
)
else
(
if {P.ARC} = 'C' then
{P.AMT}
else
0
)
)
Can anyone help with this formula
For some reason the {P.ARC} = 'N' is not working for one of the sets of records and it is bringing back values where the P.ARC is not 'N'
Thanks for your help
RD
if IsNull({P.AMT}) then
(
0
)
else
(
if ( {P.REF} in [3678,1657] and {P.ARC} = 'N' ) then
(
{P.AMT}
)
else
(
if {P.ARC} = 'C' then
{P.AMT}
else
0
)
)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Probably replacing 'and' with 'or' will solve your problem, but I do not know what exactly you wnat to do!
Forced accept.
Computer101
EE Admin
Computer101
EE Admin