0

CountUniques

Hi Marit,

You definitely aren't stupid because this ins't an easy thing, unless you know how. Here is my function to count the number records from the Sales Invoice Lines where the Amount does not equal the Amount including Tax.

=NL("Count","sales invoice line",,"Amount","=""<>""&NL(""First"",""Sales invoice line"",""Amount including tax"",""document No."",NF(,""document No.""),""line No."",NF(,""line No.""))")This builds on the concept of the sort by sum (https://community.jetreports.com/viewtopic.php?f=23&t=2109&p=10489&hilit=sort+by+sum#p10489) but uses a query as a filter value instead of the filter field.

The most important part is the "=""<>""&NL stynax to get the <> sign to be recognized.

Hope that helps.

2 comments

Please sign in to leave a comment.