Max in a flowfield
deepblue
Member Posts: 152
Hello,
In the Item Card, i'm trying to have a field that contain the posting date of the last entry in the Item Ledger Entry.
In the CalcFormula of the Flowfield I wrote
The problem is the result is not the last date but the date in the last entry.
:-k
Can you help me?
In the Item Card, i'm trying to have a field that contain the posting date of the last entry in the Item Ledger Entry.
In the CalcFormula of the Flowfield I wrote
Max("Item Ledger Entry"."Posting Date" WHERE (Item No.=FIELD(No.),Posting Date=FIELD(Date Filter)))
The problem is the result is not the last date but the date in the last entry.
:-k
Can you help me?
0
Comments
-
This is due to the key, it will use "Document No.", "Posting Date" as a best match.
Doc No. Date
1234567 12/01/06
1234568 12/16/06
1234569 12/06/06
Will return the last 12/06/06 and not 12/16/06
Create a key starting with "Posting Date" and try again
Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
there is a key starting with "posting date" but how can I set it for the flowfield?0
-
deepblue wrote:there is a key starting with "posting date" but how can I set it for the flowfield?
Sorry looked again the Key needs to be "Item No.", "Posting Date"Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions