Workflow · Track and forecast · Opening soon
Contribution margin by product
Export three QuickBooks reports: the Product and Service List, Sales by Product/Service Detail and Purchases by Product/Service Detail. Mammoth matches them on product, totals revenue and variable costs for each product, then calculates contribution margin and margin percentage.
Someone typed
“calculate contribution margin by product: revenue minus variable costs, and the margin percentage”
The agent read it as
Calculate contribution margin by product: revenue minus variable costs, and the margin percentage, from QuickBooks Product and Service List, QuickBooks Sales by Product/Service Detail and QuickBooks Purchases by Product/Service Detail.
What the agent built
6 steps, each one an ordinary Mammoth step you can open and change.
File
QuickBooks Product and Service List
CSV export · 8 rows
File
QuickBooks Sales by Product/Service Detail
CSV export · 20 rows
File
QuickBooks Purchases by Product/Service Detail
CSV export · 15 rows
Step
Make product key
Step 1
Step
Total revenue by product
Step 2
Step
Total variable costs by product
Step 3
Join
Add product revenue
8 of 8 paired
Join
Add variable costs
8 of 8 paired
Step
Calculate product margins
Step 6
Result
Product Contribution Margin
8 rows
Schedule
Runs when you say
Proposed
- FileQuickBooks Product and Service ListCSV export · 8 rows
- FileQuickBooks Sales by Product/Service DetailCSV export · 20 rows
- FileQuickBooks Purchases by Product/Service DetailCSV export · 15 rows
- StepMake product keyStep 1
- StepTotal revenue by productStep 2
- StepTotal variable costs by productStep 3
- JoinAdd product revenue8 of 8 paired
- JoinAdd variable costs8 of 8 paired
- StepCalculate product marginsStep 6
- ResultProduct Contribution Margin8 rows
- ScheduleRuns when you sayProposed
On the sample files, every step runs and the result has 8 rows.
- Download QuickBooks Product and Service List sample (8 rows)QuickBooks: Sales > Products & services > Export
- Download QuickBooks Sales by Product/Service Detail sample (20 rows)QuickBooks: Reports > Sales by product/service detail > Customize date range > Export
- Download QuickBooks Purchases by Product/Service Detail sample (15 rows)QuickBooks: Reports > Purchases by product/service detail > Customize date range > Export
What you get back
The result of that run, the rows to look at first.
Product Contribution MarginSample data8 rows
| Product | Contribution margin | Margin percentage | Revenue | Variable costs |
|---|---|---|---|---|
| Aurora Mug | 120 | 50% | 240 | 120 |
| Boreal Tote | 150 | 50% | 300 | 150 |
| Carbon Notebook | 110 | 50% | 220 | 110 |
| Drift Pen | 54 | 30% | 180 | 126 |
| Ember Candle | 180 | 45% | 400 | 220 |
| Fjord Bottle | 180 | 50% | 360 | 180 |
| Grove Planter | 84 | 30% | 280 | 196 |
| Harbor Soap | 30 | 20% | 150 | 120 |
How it works
How to use the Product Contribution Margin workflow
- 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and working on 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.
Product Contribution Margin: questions
How do you calculate contribution margin by product?
Export three QuickBooks reports: the Product and Service List, Sales by Product/Service Detail and Purchases by Product/Service Detail. Mammoth matches them on product, totals revenue and variable costs for each product, then calculates contribution margin and margin percentage.
Which export files do I need?
Use the exported QuickBooks files that contain your products, sales, and variable costs. The workflow reads those files and groups the rows by product.
What happens if a row does not match a product?
Rows that do not match the product key stay out of the grouped result until you fix the rule or the source data. You can review those rows and decide how they should be matched.
How do you change the rules?
You edit the mapping in words, such as which column is the product key and which columns count as revenue or variable costs. Then the workflow reruns with the updated rules.
Get early access to this workflow
It opens already built and working on sample files. Swap in your own exports to see your result.
Workflows like this
The number you report every month, rebuilt from the latest export, plus the forecast that follows from it.
- 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
- Profit and loss by monthBuild a monthly profit and loss statement from a QuickBooks general ledger export, with revenue, COGS, gross profit, expenses, and net income.See the workflow Built by the agent
- Pareto (ABC) analysisEvery item ranked by its total, with its share, the running share and an A, B or C classSee the workflow Template
- Inventory turnover by SKURank Shopify SKUs by inventory turnover ratio using product, order, and inventory exports from the last 12 months.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
- Customer segmentation by revenueSegment Stripe customers into revenue tiers from exported customer, charge, and threshold files, then count customers and revenue in each tier.See the workflow Built by the agent