How can I add a total row in the form that sums the nested gallery items?
Parent Gallery:
Filter(
ShowColumns([@LineHeaders],
"ID",
"Title",
"FK_Cmit_Lhdr",
"AccountDecrease",
"AccountIncrease",
"Remark",
"TransactionTerm",
"TransactionType",
"LineStatus",
"fyValues"
),
FK_Cmit_Lhdr.Value=varComit.Title)
Child Gallery Items:
With({val:
Split(ThisItem.fyValues,"|")},
ForAll(Sequence(CountRows(val)/4, 1, 4),
{fyAmt:Value(Last(FirstN(val, Value)).Result),
fyKeyi:Last(FirstN(val, Value+1)).Result,
fyStat:Last(FirstN(val, Value+2)).Result,
fyPk:Last(FirstN(val, Value+3)).Result}
)
)
The Year headers are in a separate gallery with Items: Sequence(varComit.NumberofYears, varComit.FYStart,1)

expanded to show FY on the child gallery:
