Customer profitability
“profit by customer: revenue minus cost of goods and discounts from the invoice lines, ranked, with margin percent”
Profit by customer: revenue minus cost of goods and discounts from QuickBooks invoice line detail, ranked, with margin percent, using net revenue after discounts and product costs from QuickBooks products and services, with customer names from QuickBooks customers.
What the agent built
6 steps, each one an ordinary Mammoth step you can open and change.
- FileQuickBooks invoice line detailCSV export · 34 rows
- FileQuickBooks products and servicesCSV export · 8 rows
- FileQuickBooks customersCSV export · 8 rows
- StepNormalize line namesStep 1
- StepNormalize product namesStep 2
- StepNormalize customer namesStep 3
- JoinBring in product costs24 of 34 paired
- JoinBring in customer names34 of 34 paired
- StepRank customer profitStep 6
- ResultCustomer Profit Ranking8 rows
- ScheduleRuns when you sayProposed
Checked on the sample files: every step ran, 8 rows came out, and the join paired 24 of 34 rows; the join paired 34 of 34 rows.
- Download QuickBooks invoice line detail sample (34 rows)QuickBooks: Sales > Invoices > Export transaction list with line detail
- Download QuickBooks products and services sample (8 rows)QuickBooks: Sales > Products and Services > Export list
- Download QuickBooks customers sample (8 rows)QuickBooks: Sales > Customers > Export list
What you get back
The result of that run, the rows to look at first.
| Customer | Rank | Profit | Margin % | Net revenue | Cost of goods |
|---|---|---|---|---|---|
| Bayside Bike Co | 1 | 657.20 | 61.2 | 1,074 | 416.80 |
| Elm Street Fitness | 2 | 565.75 | 67.4 | 839 | 273.25 |
| Cinder Coffee Lab | 3 | 561.50 | 62.4 | 900 | 338.50 |
| Alder & Arc | 4 | 502.40 | 81 | 620 | 117.60 |
| Orbit Outfitters | 5 | 402 | 71.3 | 564 | 162 |
| Driftwood Design | 6 | 385 | 100 | 385 | 0 |
| Foxglove Home | 7 | 318 | 52 | 612 | 294 |
| Northstar Retail | 8 | 134 | 35.1 | 382 | 248 |
How do you do customer profitability analysis?
Export your QuickBooks invoice lines, products and services, and customers. Mammoth matches line names, product names, and customer names, then calculates profit by customer from net revenue after discounts and product costs, and ranks the result with margin percent.
How it works
How to use the Customer Profit Ranking workflow
- 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and checked on the sample files.
- 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
- 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.
Customer Profit Ranking: questions
Which QuickBooks export should you use?
What happens to rows that do not match?
How do you change the rules?
Get early access to this workflow
It will open already built and checked on the sample files. Swap in your own exports and see your result.
Workflows like this
Cohorts, churn, repeat purchases, retention, RFM segments and recurring revenue, from your orders or payments.
- Customer lifetime value by cohortWork out customer lifetime value by signup month cohort from Shopify customers and orders exports, with revenue per customer and average order count.See the workflow Built by the agent
- Cohort retentionEach month's new customers, and the share still buying 1, 2, 3… months laterSee the workflow Template
- ARPU by monthCalculate average revenue per user each month from Stripe invoices and active customers.See the workflow Built by the agent
- RFM segmentsEvery customer scored 1-5 on recency, frequency and spend, with a segmentSee the workflow Template
- Net revenue retentionNet and gross revenue retention for every monthSee the workflow Template
- Repeat purchase rateEach month's new customers and the share who ordered again within 90 daysSee the workflow Template