0

NL(table) - multiple results from linked table

Hi everyone

I currently have a report with an NL(rows=2) function on one line getting a list of article numbers invoiced during a certain period of time. The results for this function are copied to the next row and are combined with an NL(rows) function getting a certain recycling tax family (with one or more subtypes) from a linked table. I need to show the different subtypes within the chosen recycling tax family for each article number returned by the first NL(rows=2) function. I then hide the first line because it doesn't contain all the info I need and just clutters my view.

The problem is that a pivot table, created straight from the report data, takes the hidden lines into account cluttering the pivot table. The second problem is that the pivot table needs to be rebuilt every time the report runs.

To make this report more user-friendly for my less Excel-savvy colleagues, I want to use the NL(table) function to build a table and make a pivot table based on said table that will refresh every time the report runs. I'm using the Sales Invoice Line table to filter for articles sold during a certain period of time (user-defined), and I've linked it to the Surcharge Item-Resource table to filter for a the tax family I want. The problem here is that the report only returns one line with the first tax subtype it encounters in the Surcharge Item-Resource table, even when there are more lines for this article with the same tax family.
Basically, if I have an article with tax family 1, tax subtype 1.1 AND tax subtype 1.2 that has been sold twice, I'm getting the following result:

  1. article + invoice 1 + tax subtype 1.1
  2. article + invoice 2 + tax subtype 1.1

 

I actually want the following result:

  1. article + invoice 1 + tax subtype 1.1
  2. article + invoice 1 + tax subtype 1.2
  3. article + invoice 2 + tax subtype 1.1
  4. article + invoice 2 + tax subtype 1.2

 

Is there a way to get all tax subtypes for a certain article number from the Surcharge Item-Resource table with the NL(table) function?

Thanks!

2 comments

Please sign in to leave a comment.