0

Sort on Sum with NAV

Hi
I am fairly new to Jet but have found some information on here regarding Sort on Sum which was very helpful but I am still having trouble trying to get mine to work.
I am trying to output a list of customers (by finding all the customers for a site with any entries in the invoice ledger) and rank them by total invoice value for the period (in this case its a year). The rows part of the formula is alos set to unique. The formula I have is

=NL("Rows","Invoice Ledger Entry","Source No.","+=NL(""Sum"",""Invoice Ledger Entry"",""Amount"",""Posting Date"","""&Filters!$E$18&""",""Global Dimension 1 Code"","""&Filters!$E$5&""",""Global Dimension 2 Code"","""&Filters!$E$6&""",""Source No."",NF(,""Source No.""),""Source Type"",""Customer"",""Amount"","">0"")","*","Global Dimension 1 Code",Filters!$E$5,"Global Dimension 2 Code",Filters!$E$6,"Posting Date",Filters!$E$18,"Source Type","Customer")

Where:
Filters!$E$18 is a date range in the format dd/mm/yyyy…dd/mm/yyyy
Filters!$E$5 is our company code (which is just MNB), global dim 1
Filters!$E$6 is our site code (which is just LEE), global dim 2

If I need to post more info let me know, any help would be much appreciated.
Dave

1 comment

Please sign in to leave a comment.