Report - Group By Month

maanmusleh
Member Posts: 7
Hi,
I'm developing a report where i have to group invoices by month.
So I used the Date table as the first data item and filtered for "Period Type" to be equal to 'Month'
and added the invoice header table as the second indented DataItem..
But I can not link the two tables together.
I want to link the invoice header to the date table using the 'Posting Date' to be between the Date.'Period Start' and Date.'Period End'
However I can't find a way to do it from the DataItemLink property.
Any thoughts??
I'm developing a report where i have to group invoices by month.
So I used the Date table as the first data item and filtered for "Period Type" to be equal to 'Month'
and added the invoice header table as the second indented DataItem..
But I can not link the two tables together.
I want to link the invoice header to the date table using the 'Posting Date' to be between the Date.'Period Start' and Date.'Period End'
However I can't find a way to do it from the DataItemLink property.
Any thoughts??
0
Comments
-
You can not do so with the DataItemLinkeference. Just put 1 line of code into the OnPreDataItem Section which filters the Posting Date.
If you are an end user then in NAVs Help (C/SIDE Reference Guiode) look for SETRANGE.
If you are a developer at a partner please get some training.Frank Dickschat
FD Consulting0 -
This kind of filter you'll have to do in the OnPreDataItem trigger of the Invoice Header dataitem :
setrange("posting date",date."period start",date."period end") ;
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