display zero on dates within a date filter

asembereng
Member Posts: 220
I have design a report that is using filtering by date. but i want it to display zeros for dates that are not found in the contributions table within the filter range.
for example.. if i use date filter range of 01/01/99..31/12/07 and the report finds all other dates except for 12/11/07 it should display
November 2007 0
.. I am displaying the rest where the dates are in contributions table. Please help me on this.
for example.. if i use date filter range of 01/01/99..31/12/07 and the report finds all other dates except for 12/11/07 it should display
November 2007 0
.. I am displaying the rest where the dates are in contributions table. Please help me on this.
0
Comments
-
I assume you are grouping and totaling by month on this report. What I would suggest is to create a temporary table, or an array (using the integer datatype for looping). Then when processing, fill this table or array with the necessarry information. Use that as the basis for the report layout rather than the data item you are currently using. As you loop through the records, if none are found for that period, you can insert a record into your temp table, or array as you want it displayed.
If I am off track, please provide more details for your report.0 -
Or, you can use the Date table as a dataitem, filter that where Period Type = Month, and indent your table linked to the Date dataitem by way of start and end dates of the Date record.0
-
I see that in form 351 - haven't had time to play around with it but I can see how useful it can be.0
-
A friend tried using the date table using request form but it took roughly an hour to display the results of the report from the contributions of about a million record. How best can i use the contribution table not to take that long?0
-
Sorry i wanted to say how best can i used the date table instead of contributions table.
Thank you,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