0

Sorting on a sum

Hi all,

I trying to carry out a lookup on the G/L entry table. Basically it is looking at vendors with a few filters applied and totalling the amount field. What I would like to do is sort it in descending order on the amount sum.

What I've got at the moment (which works in design but fails at runtime):
=NL("Rows","G/L Entry","Source No.",0,$B$3,"Shortcut Dimension 3 Code",$C$3,"Posting Date",$D$3,"Gen. Posting Type","Purchase","Source Type","Vendor","-=NL(""Sum"",""G/L Entry"",""Amount"",0,$B$3,""Shortcut Dimension 3 Code"",$C$3,""Posting Date"",$D$3,""Gen. Posting Type"",""Purchase"",""Source Type"",""Vendor"",""Source No."",NF(""Source No.""))","*")
I would be grateful if anybody could let me know where I'm going wrong!

Regards,

Q

5 comments

Please sign in to leave a comment.