0

Syntax problem with report on Item Ledger Entry

Hi,

I have a problem with a formula which is based on the Item Ledger Entry. What I want to do is sum the total quantities of the different pallet types that we have on stock.

Let me start from the beginning. We have a couple of customized programming in our Microsoft Dynamics NAV which needs to be considered.

We are selling our products as pallet units only. Therefore we are using the table "Item units of measure" to determine the packing specs for our products. The relevant figures are "Quantity per unit" and "pallet type code"

From the Item Ledger Entry we can get the "Item Nr.", "Unit of measure", "quantity"

I started with 2 Filters:
in B15: =NL("filter";"5404 Artikeleinheit";"2 Code";"50160 Palettenartencode";$A15)
in C15: =NL("filter";"5404 Artikeleinheit";"1 Artikelnr.";"50160 Palettenartencode";$A15)
to get the Item No. and the Unit of measure that have the relevant pallet type code

Afterwards I use these filters to calculate the qunatities of pallets.
=NL("Sum";"Item Ledger Entry";"=nf(;""restmenge"")/NL(""First"";""Item units of measure"";""Quantity per unit"";""Item No."";nf(;""Item No."")"";""Code"";nf(;""Unit of Measure""))";"Item No.";$C15;"Unit of measure";$B15)

With this formula I get a #value error. I get corrct results if I try to run the single parts of this formula separately. I am sure that there must be a mistake in the syntax. BTW I am from Germany and i tried to translate the names of the tables and fields. It is possible that there is a wrong translation but the names are definitely correct in my Excel sheet.

Maybe someone of you is able to help me.

Thanks
Andreas

5 comments

Please sign in to leave a comment.