Skip to content
Workflow · Stock and products · Opening soon

Gross margin by product

See gross margin for each product from Shopify exports. You get net sales, unit cost, units sold, gross margin, and margin percent.

Early access opens shortly. Check back soon.

Someone typed

“gross margin per product: net sales minus unit cost times units, and margin percent”

The agent read it as

Work out gross margin per product from Shopify orders and Shopify products: net sales minus unit cost times units, and margin percent.

What the agent built

5 steps, each one an ordinary Mammoth step you can open and change.

  1. File
    Shopify products
    CSV export · 8 rows
  2. File
    Shopify orders
    CSV export · 24 rows
  3. Step
    Make product SKU key
    Step 1
  4. Step
    Make order SKU key
    Step 2
  5. Step
    Total sales by product
    Step 3
  6. Join
    Bring in product sales
    8 of 8 paired
  7. Step
    Calculate gross margin
    Step 5
  8. Result
    Product Gross Margins
    8 rows
  9. Schedule
    Runs when you say
    Proposed

Checked on the sample files: every step ran, 8 rows came out, and the join paired 8 of 8 rows.

What you get back

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

Product Gross MarginsSample data8 rows
Product nameGross marginMargin percentNet salesUnits soldUnit costCost of units
Eco Ceramic Mug8366.401257642
Softcover Notebook51.8072.967163.2019.20
Canvas Tote3739.369469.5057
Oak Desk Lamp12155.7621742496
Steel Water Bottle7564.101176742
Soy Candle58.5060.319775.5038.50
Cedar Desk Shelf-10-9.80102428112
Weekly Planner8263.081306848
8 rows in the result. Sample data: illustrative figures, not business results.

How do you work out gross margin by product?

Export your Shopify orders and Shopify products files, then upload them. Mammoth matches products by SKU, totals sales by product, brings in unit cost, and calculates gross margin and margin percent.

How it works

How to use the Product Gross Margins workflow

  1. 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.
  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 Gross Margins: questions

Which export files should you use?
Use the orders export for sales, and the products export for SKU and unit cost. If your files use different column names, map them to the matching fields when you upload them.
What happens to rows that do not match?
Rows that do not find a match stay out of the final product totals unless you choose to review them. You can use them to spot missing SKUs, blank values, or products that were not in both files.
How do you change the rules?
Edit the workflow steps in words, then rerun it. You can change how SKUs are built, which columns are summed, and the formula used for gross margin and margin percent.

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.

Early access opens shortly. Check back soon.