Summing Totals

N

Nanette

I've been trying to sum a couple of totals using the code below because the
report is broken down into Fiscal Months. The following does not work.

Does anyone know what would work?

=Sum(NZ([BLQtyReqPD],0))+Sum(NZ([RBLQtyReqPD],0))
 
N

Nanette

Please ignore this. This one is working well.

This is the one that's not working.

=Sum(NZ([BLPricePD],0))+Sum(NZ([RBLPricePD],0))
 
N

Nanette

I'm going too fast for myself. What I was considering that I needed is this:

=Sum(NZ([BLPricePD],0))+Sum(NZ([RBLPricePD],0))*Sum(NZ([BLQtyReqPD],0))+Sum(NZ([RBLQtyReqPD],0))

But this does not work. The equation seems to stop at the * sign. Any
suggestions?
 
M

Marshall Barton

Nanette said:
I'm going too fast for myself. What I was considering that I needed is this:

=Sum(NZ([BLPricePD],0))+Sum(NZ([RBLPricePD],0))*Sum(NZ([BLQtyReqPD],0))+Sum(NZ([RBLQtyReqPD],0))

But this does not work. The equation seems to stop at the * sign. Any
suggestions?

Nanette said:
I've been trying to sum a couple of totals using the code below because the
report is broken down into Fiscal Months. The following does not work.


I don't see why that doesn't return a value. It may not do
what you want, but it should not produce an error.

Note that there is no need to use Nz in the Sum function.
All the aggregate functions ignore Null values.

Just a guessomg now, maybe you want to use:

=Sum(BLPricePD)+Sum(RBLPricePD*BLQtyReqPD)+Sum(RBLQtyReqPD)

or maybe the field names imply that you want:

=Sum(BLQtyReqPD*BLPricePD)+Sum(RBLQtyReqPD*RBLPricePD)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top