Sorting by week of Order Date

ramsay18477
Member Posts: 52
Hi All,
I've made a report to display open orders from the Sales Header table sorted by Order Date.
But, I want to sort and do the group totals by the week number of the order date on the report.
The week number is not a field in the table but Iam using the function DATE2DWY("Order Date",2) to display the week number.
Can anyone please guide ?
Thanx a lot in advance.
I've made a report to display open orders from the Sales Header table sorted by Order Date.
But, I want to sort and do the group totals by the week number of the order date on the report.
The week number is not a field in the table but Iam using the function DATE2DWY("Order Date",2) to display the week number.
Can anyone please guide ?
Thanx a lot in advance.
Thanks & Best Regards,
Ram.
Ram.
0
Answers
-
Take a look at virtual table "Date"
Use this table as dataitem and filter it to show week number only. Then use the Start and EndDate field to filter your open orders to print underneath it.0 -
for this cases I use "integer" dataitem it's much more easier since you use this DATE2DWY("Order Date",2) and on my experience is much faster.Sendoh
be smart before being a clever.0 -
Dear ara3n,
Thanx a lot for your advise.Use this table as dataitem and filter it to show week number only
I dont have week number as a field on the Sales Header table.
Please confirm if Iam on the same page as you.
Dear sendoh,
Thanx a lot to u too for your advise.for this cases I use "integer" dataitem it's much more easier since you use this DATE2DWY("Order Date",2)
Can you please explain in detail ?
Thanx again to both of u.Thanks & Best Regards,
Ram.0 -
ramsay18477 wrote:Dear ara3n,
Thanx a lot for your advise.Use this table as dataitem and filter it to show week number only
I dont have week number as a field on the Sales Header table.
Please confirm if Iam on the same page as you.
The date table has also start and end date that you will use to filter on posting date.
Then use the Start and EndDate field to filter your open orders0 -
Hi ara3n,
Thanx again.
I would like to know how to view the Date table like you have displayed in your previous reply. Because I cannot find the Date table or table id 2000000007 in my Object list of tables ?Thanks & Best Regards,
Ram.0 -
ramsay18477 wrote:Hi ara3n,
Thanx again.
I would like to know how to view the Date table like you have displayed in your previous reply. Because I cannot find the Date table or table id 2000000007 in my Object list of tables ?
just create a form based on this table.David Singleton0
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