Skip to main content
Answer

Report Joins

  • May 5, 2025
  • 1 reply
  • 66 views

Forum|alt.badge.img

Hello, 

 

I am trying to create a report to return SO lines related to production orders.  The AM Tran table contains a custom field which flags each item that needs to be printed on the report so I need that table in the report.  That table is causing duplications based on production transactions related to the items.  I was able to get rid of duplicates by adding a condition to join on lot/serials and a grouping on AM Batch number, but our client wants the grouping on SOLine.InventoryID, Alt ID, and a custom field on the SO Line.  When I changed the groupings it began duplicating the lines when the Lot/Serial was the same but the items appear on different labor tickets.  

Does anyone have any suggestions on what I can add to the join or grouping to get rid of duplicates? I am unable to share the XML due to sensitive data. 

 

Best answer by BenjaminCrisman

@lbrown57 When it is unavoidable to have duplicates due to table relations needed for the report, the solution is always to use a subreport for the data which is causing duplication. Have you already tried this?

1 reply

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • Answer
  • May 5, 2025

@lbrown57 When it is unavoidable to have duplicates due to table relations needed for the report, the solution is always to use a subreport for the data which is causing duplication. Have you already tried this?