Hi João Ferreira,
If I am not wrong then you are multiplying unit into quantity and show in total.
The attributes you had binded to the expressions u can use that in total .
and regarding the grand total use can use a variable (grand total) and on save of the editable table u can iterate the list and add the total values.
Regards,
Amreen