I have to sum all order lines with the same name and display them to a new tab in the main form. How do i approach this?

I have to sum all order lines with the same name and display them to a new tab in the main form. How do i approach this?
Hello,
Can you provide some more detail requirement with screenshots if possible.
Thank you,
Amit Katariya