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!

summary of a caculated field

Status
Not open for further replies.

wswain

Technical User
Nov 1, 2003
21
US
In a report can you do a summary of a calculated firled.


e.g. calc field = qty * price.


Then I want to summary the total of the calculation. Seems simple (and is in excel), but all I get is Zero in the summary field at the end of the group band.


Bill Swain
 
Bill,

Try
Code:
sum( qty * price )
or
Code:
sum( qty ) * sum( price )
, as appropriate.

Hope this helps...

-- Lance
 
This looks great as a standard calculation! Where can you actually insert a formula to display as a formated value, say in the lower group band. I am aware of insert field, special, summry, but was not aware of putting a specific formula in was allowed. It was looking for a field to sum.


Bill
 
Bill,

You need to:

1. Place a blank field object in the appropriate footer band,

2. Right-click it and then choose Define Field from the shortcut menu.

3. Check the checkbox next to the Calculated label.

4. Type in the calculation you need.

There are a number of functions available. See Help or experiment with the calculations that Paradox itself assigns with you select a summary operation for a given field.

Note that the return value is reset when the group value changes, so use group bands to control the resets.

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top