FlowField, sum, workaround

StGro
Member Posts: 13
Hello,
I really need some help with this..
After upgrading to 3.7, amount (LCY) is a FlowField.
Because of this, the following CalcFormula in a table is not possible anymore:
So I took the original CalcFormula of "Amount (LCY)" of "Cust. Ledger Entry" and removed the filter "Cust. Ledger Entry No. = Entry No.".
The original CalcFormula sums up some values from "detailed cust. ledger entry".
Now I need to add both filters mentioned in the code above: "type = invoice|credit memo" and "custom_field=FIELD(No.)"
I can add the first one without a problem, as it is part of the table "detailed cust. ledger entry".
But the "custom_field" is part of "customer ledger entry" so I cannot work with it this way, but of course it was possible with the code above, in navision 2.01 where amount(LCY) could be used in a sum FlowField.
I hope this description is not too weird to understand and someone out there can help..
Thanks for your help in advance,
Steffen
I really need some help with this..
After upgrading to 3.7, amount (LCY) is a FlowField.
Because of this, the following CalcFormula in a table is not possible anymore:
Sum("Cust. Ledger Entry"."Amount (LCY)" WHERE (Document Type=FILTER(Invoice|Credit Memo), custom_field=FIELD(No.)))
So I took the original CalcFormula of "Amount (LCY)" of "Cust. Ledger Entry" and removed the filter "Cust. Ledger Entry No. = Entry No.".
The original CalcFormula sums up some values from "detailed cust. ledger entry".
Now I need to add both filters mentioned in the code above: "type = invoice|credit memo" and "custom_field=FIELD(No.)"
I can add the first one without a problem, as it is part of the table "detailed cust. ledger entry".
But the "custom_field" is part of "customer ledger entry" so I cannot work with it this way, but of course it was possible with the code above, in navision 2.01 where amount(LCY) could be used in a sum FlowField.
I hope this description is not too weird to understand and someone out there can help..
Thanks for your help in advance,
Steffen
0
Comments
-
StGro wrote:Hello,
I really need some help with this..
After upgrading to 3.7, amount (LCY) is a FlowField.
Because of this, the following CalcFormula in a table is not possible anymore:Sum("Cust. Ledger Entry"."Amount (LCY)" WHERE (Document Type=FILTER(Invoice|Credit Memo), custom_field=FIELD(No.)))
So I took the original CalcFormula of "Amount (LCY)" of "Cust. Ledger Entry" and removed the filter "Cust. Ledger Entry No. = Entry No.".
The original CalcFormula sums up some values from "detailed cust. ledger entry".
Now I need to add both filters mentioned in the code above: "type = invoice|credit memo" and "custom_field=FIELD(No.)"
I can add the first one without a problem, as it is part of the table "detailed cust. ledger entry".
But the "custom_field" is part of "customer ledger entry" so I cannot work with it this way, but of course it was possible with the code above, in navision 2.01 where amount(LCY) could be used in a sum FlowField.
I hope this description is not too weird to understand and someone out there can help..
Thanks for your help in advance,
Steffen
I had a simillar problem. I created a function in Cust.Ledg.Entry wich returns the value I want.
BostjanL0
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