Calculation Question

I’m trying to calculate the average # of transactions (ie - total number of invoices divided by the total number of accounts) to show on a KPI widget in a dashboard. Does anyone have any tips for pulling in the number of customers? I am stumped.