Report Totals

roberte114
Member Posts: 5
I have a report that is grouped by two fields. I am trying to get a total for the entire report. It works fine for each grouping but not for a report total. The total I get is the total of the last group total and not a report total. Is there something that I'm missing?
0
Comments
-
What section are you putting your totals in?
You can always look at a report that is working in a similar way that you would like to see how it was done there.
ie. Accounts Receivable Aging0 -
I'm trying to put the total in the footer section. For some reason it resets the variables for each grouping iteration.0
-
CREATETOTALS
Use this function to maintain totals for a variable in the same way as totals are maintained for fields by using the TotalFields property.
CREATETOTALS(Var1 [, Var2] ,...)
Var1, Var2, ...
Data type: decimal
Comments
Just like the TotalFields property, CREATETOTALS causes group and grand totals to be maintained. The totals can be printed by placing controls that have the variable or variables that are the arguments of CREATETOTALS as their source expressions in the appropriate sections: the group totals are printed in GroupFooter sections, and the grand totals are printed in Footer sections.
Example
To have the system maintain totals for the two variables Amount and Quantity, use CREATETOTALS like this:
CurrReport.CREATEOTALS(Amount, Quantity);
TotalFields
Use this property to indicate the fields of a data item for which the system should maintain totals. If this property is used in conjunction with the GroupTotalFields, totals can be maintained for both the groups that are defined and all records that are output; if used by itself, TotalFields will maintain totals for all records.
Applies to Data items
Settings
A comma-separated list of field names. The fields can be selected by using the assist-edit function in the Value field of this property.
Comments
The totals are printed by placing controls that have the fields that are indicated in TotalFields as their source expressions in a Footer, GroupFooter or TransFooter section of the data item.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions