0

problem sorting by sum

Can someone please help me? I've been desperately trying to create a list of customer codes (source no.), in order by sales (amount) over a certain period of time from the item ledger history table. This is my first attempt at trying this new way of sorting by sum, and from reading the other posts, it looks like it should work, but it's not sorting them correctly. It still sorts them by source no. Any help would be greatly appreciated. See my formula below:


=nl("Rows","item ledger history","source no.","+=NL(""Sum"",""item ledger history"",""Amount"",""posting date"","""&$B$2&""",""entry type"",""sale"",""source no."",""CA-*"",""link="",""customer"",""no."",""=source no."",""salesperson code"",""VWM*"")","*","entry type","sale","source no.","CA-*","posting date",daterange,"link=","customer","no.","=source no.","salesperson code","VWM*")

2 comments

Please sign in to leave a comment.