dataset “Invoice” (invoiceId, invoiceDate, invoiceAmt)
11,10/8/2025,100
12,11/8/2025,200
another dataset “InvoiceDetail” (invoiceId, invoiceItemId, itemAmt)
11,1,60
11,2,40
12,1,100
12,2,30
12,3,70
sum of (itemAmt) = (invoiceAmt) for each invoiceId
when join “Invoice” with “InvoiceDetail” in Quick Sight by (invoiceId), the result dataset is
(invoiceId, invoiceDate, invoiceAmt, invoiceItemId, itemAmt)
11,10/8/2025,100,1,60
11,10/8/2025,100,2,40
12,11/8/2025,200,1,100
12,11/8/2025,200,2,30
12,11/8/2025,200,3,70
we can see that (invoiceAmt) is repeating and it will be incorrect when we do direct sum(invoiceAmt) in visuals.
what is the correct approach to handle join between parent & child tables?