Hi @Anonymous,
I am not sure with “but if there is more rows that MSFLOW than i have alloted it goes over the total row, so intend to do it in FLOW for that reason”, please provide more explanation on it.
By the way, my understanding is that you are trying to calculate the totals in an Excel table then add a row in the table.
I have made the following test for your reference.
Trigger the flow by a button.
Initialize a variable of type Integer. Set its name as Number.
List rows present in a table.
Add an Apply to each, select value from action List rows present in a table. Within the apply to each, add the action Increment variable, and input the following code in the Value field:
int(item()?['number'])
Add the action Add a row into a table. Fill in name field with Total, and number field with the variable Number.
Please take a try with it and feel free post back if you need more help.

Best regards,
Mabel