Show sum of ticket totals on table screen with multiple tickets

I am trying to sum the totals of the tickets inside a table and show it on the table screen.

When there is a single ticket it displays the correct total, however, if they’re multiple tickets it would display a very high number.

<size 35><color #FFEE8D3D>...</color><br/></size>
<color White><size 18>{ENTITY STATE MINUTES:Status} min.<br/>
${REPORT TICKET DETAILS:T.RemainingAmount:(TEN.Table=$1) and T.RemainingAmount>0:{0}}