Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why total

Status
Not open for further replies.

chevyimpala

Programmer
Dec 19, 2003
37
US
Why would this calculation give me a total of two columns instead of a single sum:

Unreal: IIf([Current Pos]=0,0,Sum(IIf([Curr]="EUR" Or [Curr]="GBP",[Size]*-1*[Rate]+([Size]*[Revalrate]),IIf([Curr]="CHF" Or [Curr]="JPY",[Size]*-1/[Rate]+([Size]/[Revalrate]),IIf([Curr]="EUR/JPY" Or [Curr]="EUR/GBP",[Size]*([Revalrate]-[Rate])/[Rate])))))

help:(
 
Not sure what you mean by it is giving you a total of two columns. Do you mean you are getting two values? If so, it is probably because of another field on your query list. The other field probably has two values and so this calculation is calculating according to that grouping.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top