Definition
Top customers by revenue is a customer ranking that shows each customer's total revenue contribution over a period, typically with supporting metrics: number of orders, average order value (AOV), and percentage of total revenue. It is one of the most fundamental customer analytics queries — identifying your highest-value customers, understanding concentration risk (what percentage of revenue comes from your top 10 customers), and informing retention and upsell priorities.
Formula
Business impact
The 80/20 rule (Pareto principle) holds strongly in most B2B and many B2C businesses — roughly 20% of customers generate 80% of revenue. Identifying that top 20% allows you to prioritise retention efforts, offer loyalty incentives, and flag churn risk early when a top customer shows declining order frequency. Revenue concentration — if your top 3 customers represent 60% of revenue — is also a business risk worth quantifying.
The challenge
Most CRM and eCommerce platforms show customer-level revenue in some form, but rarely with the flexibility to add custom dimensions, filter by date range, or combine with other data. The SQL approach gives you full control over the ranking window, included metrics, and segmentation.
Run it on your data
FAQ
Analytics hub
Related topics
Get started
Connect SQL Server to Taptic Data and run this calculation automatically from plain English — against your real data, on a schedule, delivered to your team.