0

Sum with text filter especific

Hi, I'm Using NAV 2013 R2 as database,

Im making an report that group some type of credits,
I get the list with this code:
NL("Rows","tableHeader","Description","+Posting Date","01/01/2015")
then Im using an sum formula
NL("Sum","tableLines","Credit Amount",","Description",$A1,"Posting Date","01/01/2015")

The problem is that the people who writes the description to the database makes mistakes and inputs description data like:

"AMERICAN BANK"
"AMERICAN BANK "

as you can see the second AMERICAN BANK has an space " " as last character, and this is a problem cause JetReports Unified both Descriptions as one (I think ignores the last space)

Making this Wrong result

Description———————- SUM
WEST BANK———————-1000.00
AMERICAN BANK—————-1300.00
AMERICAN BANK —————1300.00
================================
Total —————————-3300.00
================================

The correct Result is:
Description———————- SUM
WEST BANK———————-1000.00
AMERICAN BANK—————- 300.00
AMERICAN BANK —————1000.00
================================
Total —————————-2300.00
================================

HOw can I get the sum correct with the description?

6 comments

Please sign in to leave a comment.