0

Nested NL Filters

Hi there.

I've managed to build myself an increasingly complicated report. Its a sales report based on Inv & Cred totals.

I've got an error about an 'Invalid Filter', and I've not been able to figure a workaround. I'm going to abstract around some of the detail to keep it simple

Firstly, to calculate sales:

J9: Nl("Sum","Sales Invoice Line","Amount",….,"Gen. Prod. Posting Group",C10,"Document No.",I10)
I10: Nl("Filter","Sales Invoice Header","No.",….,"Sell-to Customer No.", B10)
B10: NL("Filter","Customer","No.","Club","Platinum"…"Link=","Sales Invoice Header","Sell-to Customer No.","="No.",","Posting Date","..01/01/08"….)
C:10: Nl("Rows","{List of gen. prod. posting groups}")

Now you'll say it looks way overcomplicated - which it is. However the English logic is:
Sum of Sales by Year and by Gen. Prod. Posting Group, where the Customer has had a sales before 2008, and that Customer is currently a member of the Platinum 'Club'.

First question: Do I need to do something different with the filters? Double quotes, something like that?
Secondly, any ideas for re-gigging the filtering?

thanks, Mark

3 comments

Please sign in to leave a comment.