0

Sort by Sum

I'm trying to produce a list of the product sold last month sorted from highest to lowest. I've struggled on whether to get this info from the Sales Line or Item Ledger Entry. If I go with the Sales Invoice Line then I must total with the Sales Cr.Memo Line as well. So, I thought pulling from Item Ledger Entries would simplify the equation. Reguardless, my report runs for over an hour with no conclusion. Would someone please give me some pointers?
Jet Reports 7.1
Nav 5.1
Filters are Location Code = SANDIEGO ($B$3)
Date Filter is 11.1.9..11.30.9 ($B$2)

=NL("Rows","Item Ledger Entry","Item No.","+=NL(""Sum"",""Item Ledger Entry"",""Quantity"",""Location Code"",$B$3,""Posting Date"",$B$2,""Entry Type"",""Sale"")","*")

Then I was totalling each row in a different column based on the Item No. returned from the line above.

I'm new to arrays and am eager to learn.

David

3 comments

Please sign in to leave a comment.