Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Functions of a calculated totals field
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01135308
Message ID:
01135331
Views:
11
This message has been marked as a message which has helped to the initial question of the thread.
You put Trip1 for the first variable, select Sum as an option and reset at group level. E.g. it's almost the same as creating the calculated field, except that you're creating it as a variable. Call it nTrip1, for example.

>Thank you, bless you but what do I put in the var's? Sure they need to refer to the group total field but how do I refer to a field that hasn't a name but is the sum() of a group column.
>
>>Simple. You really need two report variables for this.
>>
>>>Please consider the sample rpt layout below.
>>>
>>>The Route totals are at a group footing, totalling when group Route changes. So the values (in the 1st 2 totals: 370 and 400) are calculated, via Report Expression dialog, by the total fields being the same as the cursor fields: Trip1 and Trip2 (i.e their columns) and, via teh "Calculations" button -> Calculate Field dialog and "Sum" radio button selected.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform