Total Invoices Amount in a field in Accounts

Total Invoices Amount in a field in Accounts

Hello all, 

Is there a custom function that i can add all the invoice amount into 1 field for Account.
With that field , we can do well with ranking or evaluation customer

Or is there any other simple way to do it ?