x = [LET(a,DROP(PIVOTBY(Table1[[Parent Name]:[Child Name]],,Table1[Amt],SUM,0,-2),1),HSTACK(IF(CHOOSECOLS(a,2)="",CHOOSECOLS(a,1),CHOOSECOLS(a,2)),CHOOSECOLS(a,3)))]
Range("T2").Resize(UBound(x), UBound(x, 2)).Value = xTable1 is the name of my source data table; adjust the code to match your...