Workflow · Track and forecast · Opening soon
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.
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.
File
Shopify products
CSV export · 8 rows
File
Shopify orders
CSV export · 24 rows
Step
Make product SKU key
Step 1
Step
Make order SKU key
Step 2
Step
Total sales by product
Step 3
Join
Bring in product sales
8 of 8 paired
Step
Calculate gross margin
Step 5
Result
Product Gross Margins
8 rows
Schedule
Runs when you say
Proposed
- FileShopify productsCSV export · 8 rows
- FileShopify ordersCSV export · 24 rows
- StepMake product SKU keyStep 1
- StepMake order SKU keyStep 2
- StepTotal sales by productStep 3
- JoinBring in product sales8 of 8 paired
- StepCalculate gross marginStep 5
- ResultProduct Gross Margins8 rows
- ScheduleRuns when you sayProposed
On the sample files, every step runs and the result has 8 rows.
- Download Shopify products sample (8 rows)Shopify admin: Products > Export > Current page of products (CSV)
- Download Shopify orders sample (24 rows)Shopify admin: Orders > Export > All orders (CSV)
What you get back
The result of that run, the rows to look at first.
Product Gross MarginsSample data8 rows
| Product name | Gross margin | Margin percent | Net sales | Units sold | Unit cost | Cost of units |
|---|---|---|---|---|---|---|
| Eco Ceramic Mug | 83 | 66.4% | 125 | 7 | 6 | 42 |
| Softcover Notebook | 51.80 | 73% | 71 | 6 | 3.20 | 19.20 |
| Canvas Tote | 37 | 39.4% | 94 | 6 | 9.50 | 57 |
| Oak Desk Lamp | 121 | 55.8% | 217 | 4 | 24 | 96 |
| Steel Water Bottle | 75 | 64.1% | 117 | 6 | 7 | 42 |
| Soy Candle | 58.50 | 60.3% | 97 | 7 | 5.50 | 38.50 |
| Cedar Desk Shelf | -10 | -9.8% | 102 | 4 | 28 | 112 |
| Weekly Planner | 82 | 63.1% | 130 | 6 | 8 | 48 |
How it works
How to use the Product Gross Margins 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 Gross Margins: questions
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.
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 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