Total on form multiple records

Hi everyone,
does anyone know a way to display the total of a column in a multiple record form?

What I would do is create a new field in the form, and with the event, perform the SQL query for the values ​​I need.

But if what you want is to sum the total of one of those columns in that form and display it at the top or bottom, you can do it by creating a button and putting the query value in the button’s label.
Then, in the After Insert event. Obviously, you would change the button’s mode using Bootstrap so that it appears as a label and not as a button.