Hi I am new to Crystal and am having trouble getting a formula that I have used in Access to work properly in Crystal. I recognize that it will be written differently but have not been able to properly duplicate it. Thank you for the asssistance.
Here is the formula...
=IIf(Sum(nz(Abs([Market Value]),0))>0,Sum(NZ([OrigPrice],0)*NZ(Abs([Market Value]),0))/Sum(nz(Abs([Market Value]),0)),IIf(Sum(nz(Abs([Market Value]),0))<0,-Sum(nz([OrigPrice],0)*nz(Abs([Market Value]),0))/Sum(nz(Abs([Market Value]),0)),0))
Here is the formula...
=IIf(Sum(nz(Abs([Market Value]),0))>0,Sum(NZ([OrigPrice],0)*NZ(Abs([Market Value]),0))/Sum(nz(Abs([Market Value]),0)),IIf(Sum(nz(Abs([Market Value]),0))<0,-Sum(nz([OrigPrice],0)*nz(Abs([Market Value]),0))/Sum(nz(Abs([Market Value]),0)),0))