Skip to content
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.

Early access opens shortly. Check back soon.

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.

  1. File
    QuickBooks Product and Service List
    CSV export · 8 rows
  2. File
    QuickBooks Sales by Product/Service Detail
    CSV export · 20 rows
  3. File
    QuickBooks Purchases by Product/Service Detail
    CSV export · 15 rows
  4. Step
    Make product key
    Step 1
  5. Step
    Total revenue by product
    Step 2
  6. Step
    Total variable costs by product
    Step 3
  7. Join
    Add product revenue
    8 of 8 paired
  8. Join
    Add variable costs
    8 of 8 paired
  9. Step
    Calculate product margins
    Step 6
  10. Result
    Product Contribution Margin
    8 rows
  11. Schedule
    Runs when you say
    Proposed

On the sample files, every step runs and the result has 8 rows.

What you get back

The result of that run, the rows to look at first.

Product Contribution MarginSample data8 rows
ProductContribution marginMargin percentageRevenueVariable costs
Aurora Mug12050%240120
Boreal Tote15050%300150
Carbon Notebook11050%220110
Drift Pen5430%180126
Ember Candle18045%400220
Fjord Bottle18050%360180
Grove Planter8430%280196
Harbor Soap3020%150120
8 rows in the result. Sample data: illustrative figures, not business results.

How it works

How to use the Product Contribution Margin workflow

  1. 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and working on sample files.
  2. 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
  3. 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.

Early access opens shortly. Check back soon.

Workflows like this

The number you report every month, rebuilt from the latest export, plus the forecast that follows from it.

All track and forecast workflows →