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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression calculating incorrectly?

Status
Not open for further replies.
Mar 14, 2002
711
US
For some reason this expression I have in my query calculates the wrong values for every other row? The calculation I have is as follows:

Cycle Count: ([Std Pk Qty])*([Qty])/([CAV])

So for example:

Row1:

Std Pk Qty = 1
Qty = 1080
Cav = 4

hence, Cycle Count = 270

On Row 2 however, I have this

Std Pk Qty = 48
Qty = 106
Cav = 4

and I get this for Cycle count = 3816?? When I run the same calculation on a calculator I see, 1272???

What am I missing here and why only every other row?

Thanks!
 
I figured it out! I removed the Sum() before the expression and then it was calculating properly...how weird?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top