Discount analysis by rep
“match salesforce opportunities to line items for won deals, calculate average discount by rep and product, and show Agrees if discount is 5% to 14%, High discount above 14%, Low discount below 5%”
match Salesforce Opportunities to Salesforce Opportunity Line Items for won deals, calculate average discount by rep and product, and show Agrees if discount is 5% to 14%, High discount above 14%, Low discount below 5%
What the agent built
3 steps, each one an ordinary Mammoth step you can open and change.
- FileSalesforce OpportunitiesCSV export · 18 rows
- FileSalesforce Opportunity Line ItemsCSV export · 32 rows
- StepKeep won opportunitiesStep 1
- JoinMatch won deals32 of 32 paired
- StepAverage discount by rep and productStep 3
- ResultWon Deal Discount Summary25 rows
- ScheduleRuns when you sayProposed
On the sample files, every step runs and the result has 25 rows.
- Download Salesforce Opportunities sample (18 rows)Salesforce: Opportunities > Export
- Download Salesforce Opportunity Line Items sample (32 rows)Salesforce: Reports > Opportunities with Products > Export
What you get back
The result of that run, the rows to look at first.
| Rep | Product | Average Discount (%) | Discount Status |
|---|---|---|---|
| Diego Ramirez | CloudShield Core | 17.5 | High discount |
| Diego Ramirez | DataVault Plus | 19 | High discount |
| Diego Ramirez | RouteSync | 15 | High discount |
| Diego Ramirez | SignalStack | 20 | High discount |
| Diego Ramirez | WorkBoard Pro | 17 | High discount |
| Evan Brooks | CloudShield Core | 42 | High discount |
| Evan Brooks | SignalStack | 38 | High discount |
| Tessa Morgan | RouteSync | 17 | High discount |
| Tessa Morgan | WorkBoard Pro | 16 | High discount |
| Evan Brooks | DataVault Plus | 11 | Agrees |
| Evan Brooks | RouteSync | 10 | Agrees |
| Jordan Lee | CloudShield Core | 9 | Agrees |
How it works
How to use the Won Deal Discount Summary 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.
Won Deal Discount Summary: questions
How do you compare average discount percent by sales rep and product name on closed won deals?
What export should you use?
What happens to rows that do not match?
How do you change the 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