0

Sum product of two fields

I saw another thread here with a similar question but the resolution didn't work for me. I have a database with a TotalTime field and a LaborCost field.I would like to sum the product of these two fields.

What worked in the other thread was the following:

=NL("Sum","Sales Line","=NF(,""Quantity"")*NF(,""Unit Cost"")",….)
I replaced that with the table WorkOrderLabor, TotalTime, and LaborCost but it threw an error about "=NF(,"… not being a valid field.

On a related question, is it possible to find the difference in values from one table and then sum them? If I was trying to find the average open days for workorders that were closed in a specific month…

In sql I believe it would be similar to
Select SUM(DateClosed-DateOpened) from WorkOrders

3 comments

Please sign in to leave a comment.