I have a flowfilter on another table which looks at another table. The Calformula is made up of fields and flowfilter fields. And is made up of store number, date, type etc. The quantity field is being summed.
A similar example would be if i was looking at the purchase lines table and was filtering on type, item no. date
However for each store/date/type the values are all the same. So the quantity for:
Store1 31/12/2005 type1 is 20 and Store2 31/12/2005 type1 is 20.
Store1 31/12/2005 type2 is 110 and Store2 31/12/2005 type2 is 110.
So its as if its ignoring the Store filter but not the rest!!! Any ideas why? Is it something to do with keys on table being looked into?
GaMBe
0
Comments
RIS Plus, LLC
(e.g. on item-table):
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Sum("Payment"."Amount Tendered" WHERE (Type=FIELD(Code),ID=FIELD(ID Filter),Terminal=FIELD(Terminal),Date=FIELD(Date Filter),Store No.=FIELD(Store Filter),Time=FIELD(Time Filter)))
The Payment table has the following Secondary key with Amount as its sumindexfield:
Type,Date,Store No.,ID,POS Terminal,Time
But its not working at all. Ive looked at the Item table and other examples of the same thing being done and I cant see anything wrong or different.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
RIS Plus, LLC
And I also noticed that Navision does not always use the same index to calculate the flowfield. It depends which filters are used.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The issue is probably not setting the filter in the first place, or not calculating the values, but I wanted to point out that it is just better programming to set the filters in the same order as the key fields. If anything, it makes for easier code maintenance.
RIS Plus, LLC