FlowField Filter running terribly

amadman114
Member Posts: 36
Howdy,
In the Item Ledger Entry table I have two slow flowfields: "Cost (Actual) Excl. Depr." and "Cost (Expected) Excl. Depr."
They each have their own version of the CalcFormula:
The issue is, that the Revaluation Type=FILTER(<>Depreciation) part of this calcformula is slowing the form down to a crawl. I've tried about 50 different ideas to do with the keys in the Value Entry table, to no avail.
Does anyone have any idea what key(s) I need to set to speed up this table? The table loads almost instantly if I remove the filter.
Thanks,
Dan
In the Item Ledger Entry table I have two slow flowfields: "Cost (Actual) Excl. Depr." and "Cost (Expected) Excl. Depr."
They each have their own version of the CalcFormula:
Sum("Value Entry"."Cost Amount (Actual)" WHERE (Revaluation Type=FILTER(<>Depreciation),Item Ledger Entry No.=FIELD(Entry No.)))
The issue is, that the Revaluation Type=FILTER(<>Depreciation) part of this calcformula is slowing the form down to a crawl. I've tried about 50 different ideas to do with the keys in the Value Entry table, to no avail.
Does anyone have any idea what key(s) I need to set to speed up this table? The table loads almost instantly if I remove the filter.
Thanks,
Dan
0
Comments
-
The Item Ledger Entry for example, has a field called Positive, even though it is really a redundant information, and you can try doing the same. I.e. whenever this field is set, like, at posting, also set a Boolean field called Depreciation. And use it in the FlowFilter.
I don't know why this happens to you, must be some SQL quirk, but if they do this kind of thing you too can try.0 -
For that FlowField to work, you must already have a key in the table with fields Item Ledger Entry No., Revaluation Type, and "Cost Amount (Actual)" as a Sum Index Field.
Of course, if the fields are in that order, then the key will not be helpful (because each Item Ledger Entry No. will usually appear on just one or two records), so make sure that "Revaluation Type" is the first field that appears, so the key is:
Revaluation Type, Item Ledger Entry No.Alastair Farrugia0
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