Filtering to achieve seperate results in report

ach
Member Posts: 16
Hi There,
Wonder if you could help, I am writing a report and wish to calculate the sum of values within a date range for a period of time for example
January February March April
2000 9088 43434 4555
The above is an example of the report layout and the values shown beneath the headings will come from same table, so the question is how do I calculate the values as shown from the same table.
Thanks
Wonder if you could help, I am writing a report and wish to calculate the sum of values within a date range for a period of time for example
January February March April
2000 9088 43434 4555
The above is an example of the report layout and the values shown beneath the headings will come from same table, so the question is how do I calculate the values as shown from the same table.
Thanks

0
Comments
-
1. If you want to make the number of columns dynamicaly it won't go. At least not the way the matrix forms act. What you can do is to put max columns you expect in the design stage and then hide some of them (or use BlankZero, etc.)
2. How to calculate. Define a decimal array. (dcMonthSum). Use it as source expression in One Body Section field (dcMonthSum[1] .. dcMonthSum[12]).
In OnAfterGetRecord Calculate all 12 sums.
Remember! The table you use as source to calculate monthly sums should not be used as data item.
Think the data item as one dimension of report (vertical), months as second dimension of report (horizontal) and the data that is used for sums is defined as global record.
For example. To show monthly sales for each customers, set the Data Item = Customer (Vertical Dim), months would be horizontal dimension and "Customer Ledger Entry" is the global that you use for summing dcMonthSum[1] .. dcMonthSum[12].
If you need to know how to accomplish summing, just ask...®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯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