0

Calculated Filter

Hi All,

Please can someone help.
I need to return item rows in NAV where the sum of the invoiced quantity must be less than a certain figure ie. 70 based on certain types of Item ledger entries and a link to the BOM ledger entry table and i don't want to use the Hide+? option as i dynamically build a pivottable structure and don't want 0 values coming in through the background.
This is what i have tried.

=nl("Rows","Item",{"No.","Description","Inventory","Qty. on Sales Order","Qty. on Purch. Order","Lead Time Calculation"},"Blocked","False","No.","@@"&ItemNo,"=-((nl(""Sum"",""Item Ledger Entry"",""Invoiced Quantity"",""Item No."",NF(,""No.""),""Entry Type"",""Sale|Consumption"",""Location Code"",""*"",""Posting Date"",""*"",""Key="",{""Item No."",""Entry Type"",""Variant Code"",""Drop Shipment"",""Location Code"",""Posting Date"",""Entry No.""})-nl(""Sum"",""Item Ledger Entry"",""Invoiced Quantity"",""Item No."",NF(,""No.""),""Entry Type"",""Negative Adjmt."",""Location Code"",""*"",""Posting Date"",""*"",""Key="",{""Item No."",""Entry Type"",""Variant Code"",""Drop Shipment"",""Location Code"",""Posting Date"",""Entry No.""},""Link="",""BOM Ledger Entry"",""Reference Entry No."",""=Entry No."",""Key="",{""Reference Entry No."",""Entry No.""}))/6)","NUMBER&<70")

I know about the text limitation (I reference cells to get around this) but the issue i actually have is that if i remove the second nl(sum) from the formula, it works.
If i remove the first nl(sum) of the formula, the second part only works if i remove the "Link=" which i need.
If i try to use the entire formula less the "Link=" it still does not work which i suspect is that Jet does not allow multiple formulas in the calculation either unless i have to do this differently in my formula when trying to do first nl(sum) - Second nl(sum).

Your assistance is greatly appreciated.

Kind Regards

Tom

2 comments

Please sign in to leave a comment.