Gross margin by product
“gross margin per product: net sales minus unit cost times units, and margin percent”
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.
- 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
Checked on the sample files: every step ran, 8 rows came out, and the join paired 8 of 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 name | Gross margin | Margin percent | Net sales | Units sold | Unit cost | Cost of units |
|---|---|---|---|---|---|---|
| Eco Ceramic Mug | 83 | 66.40 | 125 | 7 | 6 | 42 |
| Softcover Notebook | 51.80 | 72.96 | 71 | 6 | 3.20 | 19.20 |
| Canvas Tote | 37 | 39.36 | 94 | 6 | 9.50 | 57 |
| Oak Desk Lamp | 121 | 55.76 | 217 | 4 | 24 | 96 |
| Steel Water Bottle | 75 | 64.10 | 117 | 6 | 7 | 42 |
| Soy Candle | 58.50 | 60.31 | 97 | 7 | 5.50 | 38.50 |
| Cedar Desk Shelf | -10 | -9.80 | 102 | 4 | 28 | 112 |
| Weekly Planner | 82 | 63.08 | 130 | 6 | 8 | 48 |
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
- 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.
Product Gross Margins: questions
Which export files 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
Find the few products that make most of your sales, what sells together, and the stock that sits too long.
- 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
- Market basket analysisEvery pair of products bought together, with support, confidence and liftSee the workflow Template
- Inventory turnover and days on handEach product's turnover and days of stock on hand, month by monthSee the workflow Template
- Demand forecast by SKUForecast next month’s demand for each SKU from your Shopify order line export using recent monthly averages and trend.See the workflow Built by the agent
- Economic order quantityCalculate economic order quantity for each item from a NetSuite item cost and demand export.See the workflow Built by the agent